void-packages/srcpkgs/gnome-autoar/template
2021-07-10 20:45:50 +02:00

40 lines
1.1 KiB
Bash

# Template file for 'gnome-autoar'
pkgname=gnome-autoar
version=0.3.0
revision=2
build_style=gnu-configure
build_helper="gir"
configure_args="--disable-schemas-compile"
hostmakedepends="automake pkg-config glib-devel"
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=f2c112c0120cca2bf5a82c5b0ac8cba90ce10d21fec78f50a3bc513fdd64586b
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
}
}