45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
# Template file for 'appstream-glib'
|
|
pkgname=appstream-glib
|
|
version=0.7.8
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Dgtk-doc=false -Drpm=false -Dstemmer=false
|
|
-Dintrospection=$(vopt_if gir true false)"
|
|
hostmakedepends="gcab gperf pkg-config $(vopt_if gir 'gobject-introspection')"
|
|
makedepends="gcab-devel gtk+3-devel json-glib-devel libarchive-devel
|
|
libsoup-devel libyaml-devel"
|
|
short_desc="Install and update applications"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://people.freedesktop.org/~hughsient/appstream-glib/"
|
|
distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
|
|
checksum=eb0e2cfd5a6070615efea4c87b1fc539f4566085aa5f5b41945f679d9d61dd4c
|
|
|
|
build_options="gir"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
else
|
|
# glib-resources-compile
|
|
hostmakedepends+=" glib-devel"
|
|
fi
|
|
|
|
post_install() {
|
|
rm -rf -- "${DESTDIR}"/usr/share/installed-tests
|
|
}
|
|
|
|
appstream-glib-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} gcab-devel gdk-pixbuf-devel
|
|
libarchive-devel libsoup-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/lib/girepository-1.0
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|