void-packages/srcpkgs/rng-tools/template

36 lines
804 B
Bash
Raw Normal View History

2015-04-24 20:43:58 +02:00
# Template file for 'rng-tools'
pkgname=rng-tools
version=5
2015-07-25 13:56:38 +02:00
revision=5
build_pie=yes
2015-04-24 20:43:58 +02: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 18:19:09 +02:00
configure_args="--sbindir=/usr/bin"
2015-04-24 20:43:58 +02:00
2015-06-21 20:04:30 +02: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 20:43:58 +02:00
post_install() {
vsv rngd
}