2017-05-11 00:14:54 +02:00
|
|
|
# Template file for 'appstream-glib'
|
|
|
|
pkgname=appstream-glib
|
2018-01-13 00:43:39 +01:00
|
|
|
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
|
2018-01-13 00:43:39 +01:00
|
|
|
# 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>"
|
2018-01-13 00:43:39 +01:00
|
|
|
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"
|
2018-01-13 00:43:39 +01:00
|
|
|
checksum=b216583a8b9c47f6db52031fbbdfd9005a274c6a0a97c8db8c1d80c890b7d545
|
2017-05-11 00:14:54 +02:00
|
|
|
|
2018-01-13 00:43:39 +01:00
|
|
|
build_options="gir"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default+=" gir"
|
|
|
|
fi
|
2017-05-11 00:14:54 +02:00
|
|
|
|
2018-01-13 00:43:39 +01: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() {
|
2017-12-01 00:30:30 +01:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|