void-packages/srcpkgs/gcab/template

34 lines
950 B
Bash

# Template file for 'gcab'
pkgname=gcab
version=1.4
revision=2
build_style=meson
build_helper=gir
configure_args="$(vopt_bool gir introspection) -Ddocs=false"
hostmakedepends="glib-devel intltool pkg-config $(vopt_if gir vala)"
makedepends="libglib-devel $(vopt_if gir vala)"
short_desc="GObject library to create cabinet files"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/msitools"
distfiles="${GNOME_SITE}/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
checksum=67a5fa9be6c923fbc9197de6332f36f69a33dadc9016a2b207859246711c048f
build_options="gir"
build_options_default="gir"
gcab-devel_package() {
depends="${sourcepkg}>=${version}_${revision} 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
vmove usr/share/vala
fi
}
}