From 78a611cf2fd706102fa7a5158067f94a34e19b1c Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Sun, 21 Jun 2015 20:04:30 +0200 Subject: [PATCH] rng-tools: unbreak musl. --- srcpkgs/rng-tools/template | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/srcpkgs/rng-tools/template b/srcpkgs/rng-tools/template index b038a2921f..97df5f488d 100644 --- a/srcpkgs/rng-tools/template +++ b/srcpkgs/rng-tools/template @@ -1,7 +1,7 @@ # Template file for 'rng-tools' pkgname=rng-tools version=5 -revision=3 +revision=4 build_style=gnu-configure makedepends="libgcrypt-devel" short_desc="Random number generator related utilities" @@ -12,6 +12,23 @@ 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 }