gnome-autoar: always enable gir

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-05-05 14:13:51 +02:00
parent cebcbed0cd
commit 9fb41ad7b6
No known key found for this signature in database
GPG key ID: DE55AD8DBEBB4EE8

View file

@ -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 <xtraeme@voidlinux.org>"
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
}
}