void-packages/srcpkgs/gnome-autoar/template

38 lines
1.0 KiB
Bash

# Template file for 'gnome-autoar'
pkgname=gnome-autoar
version=0.4.3
revision=1
build_style=meson
build_helper="gir"
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=7bdf0789553496abddc3c963b0ce7363805c0c02c025feddebcaacc787249e88
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"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}