From 65ee48e504c2bd8e2be53e8b578df9659911fb91 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sun, 18 Mar 2018 07:21:45 -0300 Subject: [PATCH] appstream-glib: modernize template and fix -devel package. --- srcpkgs/appstream-glib/template | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/srcpkgs/appstream-glib/template b/srcpkgs/appstream-glib/template index e23e7a3626a..e19a3df2dd8 100644 --- a/srcpkgs/appstream-glib/template +++ b/srcpkgs/appstream-glib/template @@ -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 " 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 } }