diff --git a/srcpkgs/libnotify/template b/srcpkgs/libnotify/template index 614c35c595b..4b57e7dfd6c 100644 --- a/srcpkgs/libnotify/template +++ b/srcpkgs/libnotify/template @@ -1,33 +1,37 @@ # Template file for 'libnotify' pkgname=libnotify version=0.7.7 -revision=1 +revision=2 build_style=gnu-configure +build_helper="gir" configure_args="--disable-static $(vopt_enable gir introspection)" -hostmakedepends="pkg-config glib-devel $(vopt_if gir gobject-introspection)" +hostmakedepends="pkg-config glib-devel" makedepends="libglib-devel libpng-devel gdk-pixbuf-devel gtk+3-devel" short_desc="Desktop notification library" maintainer="Juan RP " +license="LGPL-2.1-or-later" homepage="http://library.gnome.org/devel/notification-spec/" -license="LGPL-2.1" -distfiles="${GNOME_SITE}/$pkgname/0.7/$pkgname-$version.tar.xz" +distfiles="${GNOME_SITE}/${pkgname}/0.7/${pkgname}-${version}.tar.xz" checksum=9cb4ce315b2655860c524d46b56010874214ec27e854086c1a1d0260137efc04 # Package build options build_options="gir" -# Disable gir for cross builds. -if [ -z "$CROSS_BUILD" ]; then - build_options_default="gir" -fi +case "$XBPS_TARGET_MACHINE" in + x86_64-musl) build_options_default+=" gir" ;; + *-musl) ;; + *) build_options_default+=" gir" ;; +esac libnotify-devel_package() { depends="${makedepends} ${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include - vmove usr/share vmove usr/lib/pkgconfig vmove "usr/lib/*.so" + if [ "$build_option_gir" ]; then + vmove usr/share/gir-1.0 + fi } }