rng-tools: unbreak musl.
This commit is contained in:
parent
c101d5d979
commit
78a611cf2f
1 changed files with 18 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue