void-packages/srcpkgs/rng-tools/template
Lon Willett ead5ab0eae rng-tools: update to version 6
Note that this update required a minor patch for compilation with
musl, and that the upstream location has moved.

Also note the command line options for rngd have changed.
2017-09-09 23:32:54 +02:00

41 lines
920 B
Bash

# Template file for 'rng-tools'
pkgname=rng-tools
version=6
revision=1
wrksrc=rng-tools-${pkgname}-${version}
build_style=gnu-configure
makedepends="libgcrypt-devel libsysfs-devel"
hostmakedepends="automake"
short_desc="Random number generator related utilities"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-3"
homepage="https://github.com/nhorman/rng-tools/releases"
distfiles="https://github.com/nhorman/rng-tools/archive/${pkgname}-${version}.tar.gz"
checksum=6d9c3f72824d1ea15dd2a80bfcf71f6a73c8843c6344f7f774a97a4ca7641b4c
configure_args="--sbindir=/usr/bin"
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" argp-standalone"
;;
esac
pre_configure() {
sh autogen.sh
}
do_build() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
LIBS="-largp -lgcrypt"
;;
*)
LIBS="-lgcrypt"
;;
esac
make CC="$CC" LIBS="$LIBS" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}
post_install() {
vsv rngd
}