appstream-glib: modernize template and fix -devel package.
This commit is contained in:
parent
534f37f686
commit
65ee48e504
1 changed files with 16 additions and 9 deletions
|
@ -1,16 +1,13 @@
|
|||
# Template file for 'appstream-glib'
|
||||
pkgname=appstream-glib
|
||||
version=0.7.7
|
||||
revision=1
|
||||
revision=2
|
||||
configure_args="-Dgtk-doc=false -Drpm=false -Dstemmer=false
|
||||
-Dintrospection=$(vopt_if gir true false)"
|
||||
-Dintrospection=$(vopt_if gir true false) -Denable-alpm=true"
|
||||
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"
|
||||
hostmakedepends="gcab $(vopt_if gir gobject-introspection) gperf pkg-config"
|
||||
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"
|
||||
|
@ -26,12 +23,22 @@ else
|
|||
hostmakedepends+=" glib-devel"
|
||||
fi
|
||||
|
||||
post_install() {
|
||||
rm -rf -- "${DESTDIR}"/usr/share/installed-tests
|
||||
}
|
||||
|
||||
appstream-glib-devel_package() {
|
||||
depends="${sourcepkg}>=${version}_${revision} libarchive-devel gcab-devel gdk-pixbuf-devel"
|
||||
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue