From 0c683319f523529227cd54f4715f308c3e24556c Mon Sep 17 00:00:00 2001 From: John Date: Tue, 25 Sep 2018 08:58:24 +0200 Subject: [PATCH] AppStream: enable qt5 bindings --- common/shlibs | 1 + srcpkgs/AppStream-qt | 1 + srcpkgs/AppStream/template | 18 +++++++++++++----- 3 files changed, 15 insertions(+), 5 deletions(-) create mode 120000 srcpkgs/AppStream-qt diff --git a/common/shlibs b/common/shlibs index 174255e3e9e..348f4627e5b 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2843,6 +2843,7 @@ libyaz_icu.so.5 yaz-5.23.1_1 libyaz.so.5 yaz-5.23.1_1 libyaz_server.so.5 yaz-5.23.1_1 libgcab-1.0.so.0 gcab-0.7_1 +libappstream.so.4 AppStream-0.12.2_1 libappstream-glib.so.8 appstream-glib-0.6.13_1 libappstream-builder.so.8 appstream-glib-0.6.13_1 libflatpak.so.0 flatpak-0.9.3_2 diff --git a/srcpkgs/AppStream-qt b/srcpkgs/AppStream-qt new file mode 120000 index 00000000000..816336d5d77 --- /dev/null +++ b/srcpkgs/AppStream-qt @@ -0,0 +1 @@ +AppStream \ No newline at end of file diff --git a/srcpkgs/AppStream/template b/srcpkgs/AppStream/template index 41b4da57be2..1b63158682c 100644 --- a/srcpkgs/AppStream/template +++ b/srcpkgs/AppStream/template @@ -1,12 +1,13 @@ # Template file for 'AppStream' pkgname=AppStream version=0.12.2 -revision=2 +revision=3 wrksrc="appstream-APPSTREAM_${version//./_}" build_style=meson -configure_args="-Dgir=false -Dstemming=false -Dapidocs=false" -hostmakedepends="docbook-xsl glib-devel gperf libxslt pkg-config" -makedepends="libglib-devel libxml2-devel libyaml-devel" +configure_args="-Dgir=false -Dstemming=false -Dapidocs=false -Dqt=true" +hostmakedepends="docbook-xsl glib-devel gperf libxslt pkg-config + qt5-host-tools" +makedepends="libglib-devel libxml2-devel libyaml-devel qt5-devel" short_desc="Tools and libraries to work with AppStream metadata" maintainer="maxice8 " license="GPL-2.0-or-later" @@ -18,7 +19,7 @@ conf_files="/etc/appstream.conf" triggers="appstream-cache" AppStream-devel_package() { - depends="AppStream-${version}_${revision}" + depends="AppStream-${version}_${revision} AppStream-qt-${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include @@ -26,3 +27,10 @@ AppStream-devel_package() { vmove "usr/lib/*.so" } } + +AppStream-qt_package() { + short_desc+=" - qt5 interface library" + pkg_install() { + vmove "usr/lib/libAppStreamQt.so.*" + } +}