34 lines
787 B
Bash
34 lines
787 B
Bash
# Template file for 'rng-tools'
|
|
pkgname=rng-tools
|
|
version=5
|
|
revision=5
|
|
build_style=gnu-configure
|
|
makedepends="libgcrypt-devel"
|
|
short_desc="Random number generator related utilities"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="GPL-3"
|
|
homepage="http://sourceforge.net/projects/gkernel"
|
|
distfiles="${SOURCEFORGE_SITE}/gkernel/${pkgname}-${version}.tar.gz"
|
|
checksum=60a102b6603bbcce2da341470cad42eeaa9564a16b4490e7867026ca11a3078e
|
|
configure_args="--sbindir=/usr/bin"
|
|
|
|
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"
|
|
}
|
|
|
|
post_install() {
|
|
vsv rngd
|
|
}
|