void-packages/srcpkgs/appstream-glib/template

41 lines
1.3 KiB
Bash

# Template file for 'appstream-glib'
pkgname=appstream-glib
version=0.8.1
revision=2
build_style=meson
build_helper="gir"
configure_args="-Dgtk-doc=false -Drpm=false -Dstemmer=false
-Dintrospection=$(vopt_if gir true false)"
hostmakedepends="gcab gperf pkg-config glib-devel gettext"
makedepends="gcab-devel gtk+3-devel json-glib-devel libarchive-devel
libcurl-devel libyaml-devel"
short_desc="Install and update applications"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://people.freedesktop.org/~hughsient/appstream-glib/"
changelog="https://raw.githubusercontent.com/hughsie/appstream-glib/master/NEWS"
distfiles="https://people.freedesktop.org/~hughsient/appstream-glib/releases/appstream-glib-${version}.tar.xz"
checksum=68a3d007f5b3aa84592dbef07950d9acf327da97ec8a6e88a90575d9055ddf6d
build_options="gir"
build_options_default="gir"
post_install() {
rm -r "${DESTDIR}"/usr/share/installed-tests
}
appstream-glib-devel_package() {
depends="${sourcepkg}>=${version}_${revision} gcab-devel gdk-pixbuf-devel
libarchive-devel libcurl-devel libyaml-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/aclocal
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}