void-packages/srcpkgs/rng-tools/template

36 lines
804 B
Bash
Raw Normal View History

2015-04-24 18:43:58 +00:00
# Template file for 'rng-tools'
pkgname=rng-tools
version=5
2015-07-25 11:56:38 +00:00
revision=5
build_pie=yes
2015-04-24 18:43:58 +00:00
build_style=gnu-configure
makedepends="libgcrypt-devel"
short_desc="Random number generator related utilities"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="http://sourceforge.net/projects/gkernel"
distfiles="${SOURCEFORGE_SITE}/gkernel/${pkgname}-${version}.tar.gz"
checksum=60a102b6603bbcce2da341470cad42eeaa9564a16b4490e7867026ca11a3078e
2015-06-02 16:19:09 +00:00
configure_args="--sbindir=/usr/bin"
2015-04-24 18:43:58 +00:00
2015-06-21 18:04:30 +00:00
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" argp-standalone"
;;
esac
do_build() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
LIBS="-largp -lgcrypt"
;;
*)
LIBS="-lgcrypt"
esac
make CC="$CC" LIBS="$LIBS" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}
2015-04-24 18:43:58 +00:00
post_install() {
vsv rngd
}