diff --git a/srcpkgs/evolution-data-server/template b/srcpkgs/evolution-data-server/template index 87d2fee059f..8a7e7e7d7a6 100644 --- a/srcpkgs/evolution-data-server/template +++ b/srcpkgs/evolution-data-server/template @@ -28,14 +28,13 @@ else fi pre_configure() { - case "$XBPS_TARGET_MACHINE" in - *-musl) # Create iconv-detect.h for musl libc + if [ "$CROSS_BUILD" ]; then + # Create iconv-detect.h for cross builds echo '/* This is an auto-generated header, DO NOT EDIT! */' > iconv-detect.h echo >>iconv-detect.h echo '#define ICONV_ISO_D_FORMAT "iso-%d-%d"' >>iconv-detect.h echo '#define ICONV_ISO_S_FORMAT "iso-%d-%s"' >>iconv-detect.h - ;; - esac + fi } post_install() { # Fix broken pkg-config