diff --git a/srcpkgs/appstream-glib/patches/0003-fix-as-compilation.patch b/srcpkgs/appstream-glib/patches/0003-fix-as-compilation.patch new file mode 100644 index 00000000000..ccc031b29a8 --- /dev/null +++ b/srcpkgs/appstream-glib/patches/0003-fix-as-compilation.patch @@ -0,0 +1,15 @@ +diff --git a/libappstream-glib/meson.build b/libappstream-glib/meson.build +index 37d4747..3555fa0 100644 +--- libappstream-glib/meson.build ++++ libappstream-glib/meson.build +@@ -235,6 +235,9 @@ if get_option('introspection') + 'Gio-2.0', + 'GdkPixbuf-2.0' + ], ++ extra_args : [ ++ '-DAS_COMPILATION', ++ ], + link_with : asglib, + install : true, + ) + diff --git a/srcpkgs/appstream-glib/template b/srcpkgs/appstream-glib/template index f515e15c9d7..0841b9561ad 100644 --- a/srcpkgs/appstream-glib/template +++ b/srcpkgs/appstream-glib/template @@ -1,11 +1,12 @@ # Template file for 'appstream-glib' pkgname=appstream-glib version=0.7.14 -revision=1 +revision=2 build_style=meson +build_helper="gir" configure_args="-Dgtk-doc=false -Drpm=false -Dstemmer=false -Dintrospection=$(vopt_if gir true false)" -hostmakedepends="gcab gperf pkg-config $(vopt_if gir 'gobject-introspection')" +hostmakedepends="gcab gperf pkg-config glib-devel" makedepends="gcab-devel gtk+3-devel json-glib-devel libarchive-devel libsoup-devel libyaml-devel" short_desc="Install and update applications" @@ -17,12 +18,12 @@ distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz" checksum=6dccad15f9d9a59dec6d259170a2010ee4a4b87475335a122a5d8b5e654a1a58 build_options="gir" -if [ -z "$CROSS_BUILD" ]; then - build_options_default="gir" -else - # glib-resources-compile - hostmakedepends+=" glib-devel" -fi + +case "$XBPS_TARGET_MACHINE" in + x86_64-musl) build_options_default+=" gir" ;; + *-musl) ;; + *) build_options_default+=" gir" ;; +esac post_install() { rm -rf -- "${DESTDIR}"/usr/share/installed-tests