cronie: unbreak musl builds

This commit is contained in:
Juan RP 2019-11-02 16:55:31 +01:00
parent 812b4f28ea
commit ce5892305f
No known key found for this signature in database
GPG key ID: AF19F6CB482F9368

View file

@ -33,14 +33,14 @@ alternatives="
crond:crond.8:/usr/share/man/man8/cronie-crond.8
"
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" musl-obstack" ;;
esac
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-obstack"
fi
pre_build() {
case "$XBPS_TARGET_MACHINE" in
*-musl) sed -i Makefile */Makefile -e "s; -lpam; -lobstack&;" ;;
esac
pre_configure() {
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
export LIBS="-lobstack"
fi
}
post_install() {