From d10f62132535b50a668daf0a9a2b0998b7ae769a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sat, 17 Oct 2015 09:30:50 +0200 Subject: [PATCH] libzapojit: unbreak cross --- srcpkgs/libzapojit/template | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/srcpkgs/libzapojit/template b/srcpkgs/libzapojit/template index b725b51d55..fb87d17dab 100644 --- a/srcpkgs/libzapojit/template +++ b/srcpkgs/libzapojit/template @@ -4,7 +4,7 @@ version=0.0.3 revision=4 build_style=gnu-configure configure_args="--disable-static" -hostmakedepends="pkg-config intltool gobject-introspection" +hostmakedepends="pkg-config intltool $(vopt_if gir gobject-introspection)" makedepends="json-glib-devel rest-devel gnome-online-accounts-devel" depends="rest>=0.7.90" short_desc="GLib/GObject wrapper for the SkyDrive and Hotmail REST APIs" @@ -14,14 +14,21 @@ homepage="http://live.gnome.org/Zapojit" distfiles="${GNOME_SITE}/$pkgname/0.0/$pkgname-$version.tar.xz" checksum=3d25f99329105abb99d1e9651b0aa1842065456ea54c22970a7330e9f3d1c37e +build_options="gir" +if [ -z "$CROSS_BUILD" ]; then + build_options_default="gir" +fi + libzapojit-devel_package() { depends="libglib-devel json-glib-devel rest-devel>=0.7.90 ${sourcepkg}-${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig - vmove usr/share/gir-1.0 vmove usr/share/gtk-doc vmove "usr/lib/*.so" + if [ "$build_option_gir" ]; then + vmove usr/share/gir-1.0 + fi } }