void-packages/srcpkgs/appstream-glib/template

40 lines
1.2 KiB
Bash

# Template file for 'appstream-glib'
pkgname=appstream-glib
version=0.7.6
revision=1
configure_args="-Dgtk-doc=false -Drpm=false -Dstemmer=false
-Dintrospection=$(vopt_if gir true false)"
build_style=meson
hostmakedepends="pkg-config $(vopt_if gir gobject-introspection) gperf gcab"
# XXX: add libstemmer support
# Requires tagged release
# https://github.com/snowballstem/snowball/issues/7
makedepends="gtk+3-devel libyaml-devel gcab-devel libsoup-devel libarchive-devel
json-glib-devel"
short_desc="Install and update applications"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="LGPL-2.1"
homepage="https://people.freedesktop.org/~hughsient/appstream-glib/"
distfiles="$homepage/releases/$pkgname-$version.tar.xz"
checksum=b216583a8b9c47f6db52031fbbdfd9005a274c6a0a97c8db8c1d80c890b7d545
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir"
fi
if [ "$CROSS_BUILD" ]; then
# the cross-build craps out due to no glib-resources-compile
hostmakedepends+=" glib-devel"
fi
appstream-glib-devel_package() {
depends="${sourcepkg}>=${version}_${revision} libarchive-devel gcab-devel gdk-pixbuf-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}