From 9fb41ad7b68234e36f40ce6f59ce1c78bab5d504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sun, 5 May 2019 14:13:51 +0200 Subject: [PATCH] gnome-autoar: always enable gir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Buchmüller --- srcpkgs/gnome-autoar/template | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/srcpkgs/gnome-autoar/template b/srcpkgs/gnome-autoar/template index f85cf205d8..43129a5eb4 100644 --- a/srcpkgs/gnome-autoar/template +++ b/srcpkgs/gnome-autoar/template @@ -1,30 +1,42 @@ # Template file for 'gnome-autoar' pkgname=gnome-autoar version=0.2.3 -revision=1 -lib32disabled=yes +revision=2 build_style=gnu-configure +build_helper="gir" configure_args="--disable-schemas-compile" hostmakedepends="pkg-config glib-devel $(vopt_if gir gobject-introspection)" makedepends="libarchive-devel gtk+3-devel glib-devel" short_desc="Automatic archives creating and extracting library" maintainer="Juan RP " -homepage="https://wiki.gnome.org/TingweiLan/GSoC2013Final" license="LGPL-2.1" +homepage="https://wiki.gnome.org/TingweiLan/GSoC2013Final" distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz" checksum=5de9db0db028cd6cab7c2fec46ba90965474ecf9cd68cfd681a6488cf1fb240a +lib32disabled=yes # Package build options build_options="gir" +build_options_default="gir" + +pre_build() { + if [ "$CROSS_BUILD" ]; then + # Make g-ir-scanner-qemuwrapper append this path + export GIR_EXTRA_LIBS_PATH="${wrksrc}/gnome-autoar/.libs" + fi +} -if [ -z "$CROSS_BUILD" ]; then - build_options_default="gir" -fi gnome-autoar-devel_package() { depends="gnome-autoar>=${version}_${revision} libarchive-devel glib-devel" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + vmove "usr/lib/*.a" + vmove usr/share/gtk-doc + if [ "$build_option_gir" ]; then + vmove usr/share/gir-1.0 + fi } }