void-packages/srcpkgs/gnome-autoar/template

38 lines
1.0 KiB
Bash

# Template file for 'gnome-autoar'
pkgname=gnome-autoar
version=0.4.4
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=c0afbe333bcf3cb1441a1f574cc8ec7b1b8197779145d4edeee2896fdacfc3c2
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
}
}