From e8dc86f09761e308c5c8182cff2ac1a40e6a6317 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 19 Feb 2014 09:58:51 +0100 Subject: [PATCH] libsecret: added gir build option. --- srcpkgs/libsecret/template | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/srcpkgs/libsecret/template b/srcpkgs/libsecret/template index f185efce64..787b7ebc0f 100644 --- a/srcpkgs/libsecret/template +++ b/srcpkgs/libsecret/template @@ -1,10 +1,10 @@ # Template file for 'libsecret' pkgname=libsecret version=0.16 -revision=1 +revision=2 build_style=gnu-configure -configure_args="--disable-static" -hostmakedepends="pkg-config intltool gnome-doc-utils gobject-introspection" +configure_args="--disable-static --with-libgcrypt-prefix=${XBPS_CROSS_BASE}/usr" +hostmakedepends="pkg-config intltool gnome-doc-utils glib-devel" makedepends="vala-devel>=0.20 libgcrypt-devel" short_desc="GObject based library for accessing the Secret Service API" maintainer="Juan RP " @@ -13,6 +13,22 @@ homepage="http://www.gnome.org" distfiles="${GNOME_SITE}/$pkgname/0.16/$pkgname-${version}.tar.xz" checksum=b859406c490a2011b35f5940235304315b343f2efd554800285f24b95e14f218 +# Package build options +build_options="gir" +desc_option_gir="Enable support for building gobject introspection data" + +# Disable gir for cross builds. +if [ -z "$CROSS_BUILD" ]; then + build_options_default="gir" +fi + +if [ "$build_option_gir" ]; then + configure_args+=" --enable-introspection" + makedepends+=" gobject-introspection" +else + configure_args+=" --disable-introspection" +fi + libsecret-devel_package() { depends="libglib-devel ${sourcepkg}-${version}_${revision}" short_desc+=" - development files" @@ -21,7 +37,9 @@ libsecret-devel_package() { vmove usr/lib/pkgconfig vmove "usr/lib/*.so" vmove usr/share/gtk-doc - vmove usr/share/gir-1.0 - vmove usr/share/vala + if [ "$build_option_gir" ]; then + vmove usr/share/gir-1.0 + vmove usr/share/vala + fi } }