diff --git a/srcpkgs/cronie/template b/srcpkgs/cronie/template index ead823ac5d9..50e2d88dfbd 100644 --- a/srcpkgs/cronie/template +++ b/srcpkgs/cronie/template @@ -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() {