From 76770404af1334d1f5732b58b290cdaf38003f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 25 Nov 2015 20:03:03 +0100 Subject: [PATCH] gfbgraph: add build option gir --- srcpkgs/gfbgraph/template | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/srcpkgs/gfbgraph/template b/srcpkgs/gfbgraph/template index 3983fb20ee7..9811b499f3e 100644 --- a/srcpkgs/gfbgraph/template +++ b/srcpkgs/gfbgraph/template @@ -1,10 +1,10 @@ # Template file for 'gfbgraph' pkgname=gfbgraph version=0.2.3 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-static" -hostmakedepends="pkg-config intltool gobject-introspection" +hostmakedepends="pkg-config intltool $(vopt_if gir gobject-introspection)" makedepends="rest-devel json-glib-devel gnome-online-accounts-devel" short_desc="GLib/GObject wrapper for the SkyDrive and Hotmail REST APIs" maintainer="Juan RP " @@ -13,6 +13,11 @@ homepage="http://live.gnome.org/gfbgraph" distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz" checksum=da1179083cde2b649d7491c745250a00d292e390fd620b7dd2dd95a122dae0b6 +build_options="gir" +if [ -z "$CROSS_BUILD" ]; then + build_options_default="gir" +fi + post_install() { rm -rf ${DESTDIR}/usr/doc } @@ -23,8 +28,10 @@ gfbgraph-devel_package() { 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 [ -z "$CROSS_BUILD" ]; then + vmove usr/share/gir-1.0 + fi } }