void-packages/srcpkgs/rng-tools/template
2019-11-08 22:44:49 +01:00

41 lines
969 B
Bash

# Template file for 'rng-tools'
pkgname=rng-tools
version=6.8
revision=1
wrksrc=${pkgname}-${version}
build_style=gnu-configure
makedepends="libgcrypt-devel libsysfs-devel libcurl-devel libxml2-devel"
hostmakedepends="automake pkg-config"
short_desc="Random number generator related utilities"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-2.0-or-later"
homepage="https://github.com/nhorman/rng-tools/releases"
distfiles="https://github.com/nhorman/rng-tools/archive/v${version}.tar.gz"
checksum=93e548d4aaf2a1897d4b677f41d8473db1c7f57648adeca18cafa1907e410bb3
configure_args="--sbindir=/usr/bin --without-pkcs11"
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
}