void-packages/srcpkgs/gnome-autoar/template

42 lines
1.2 KiB
Bash

# Template file for 'gnome-autoar'
pkgname=gnome-autoar
version=0.2.4
revision=1
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="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-only"
homepage="https://wiki.gnome.org/TingweiLan/GSoC2013Final"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=0a34c377f8841abbf4c29bc848b301fbd8e4e20c03d7318c777c58432033657a
lib32disabled=yes
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
}
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
}
}