void-packages/srcpkgs/appstream-glib/template

40 lines
1.2 KiB
Bash
Raw Normal View History

2017-05-11 00:14:54 +02:00
# 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"
2017-05-11 00:14:54 +02:00
# XXX: add libstemmer support
# Requires tagged release
# https://github.com/snowballstem/snowball/issues/7
2017-05-11 00:14:54 +02:00
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"
2017-05-11 00:14:54 +02:00
homepage="https://people.freedesktop.org/~hughsient/appstream-glib/"
distfiles="$homepage/releases/$pkgname-$version.tar.xz"
checksum=b216583a8b9c47f6db52031fbbdfd9005a274c6a0a97c8db8c1d80c890b7d545
2017-05-11 00:14:54 +02:00
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir"
fi
2017-05-11 00:14:54 +02:00
if [ "$CROSS_BUILD" ]; then
# the cross-build craps out due to no glib-resources-compile
hostmakedepends+=" glib-devel"
fi
2017-05-11 00:14:54 +02:00
appstream-glib-devel_package() {
depends="${sourcepkg}>=${version}_${revision} libarchive-devel gcab-devel gdk-pixbuf-devel"
2017-05-11 00:14:54 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}