aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2021-01-25 10:41:54 +0100
committerRasmus Thomsen <oss@cogitri.dev>2021-01-25 12:51:24 +0100
commite2a6d62cc483fa1b85d4cfd57d970048c4403b8f (patch)
tree72bc3cf5be1d2516cffc8ce8d0bd8bbabcec37ac
parent239ef7e87536fdb557ec00c38ce8b683dbc9942a (diff)
downloadaports-e2a6d62cc483fa1b85d4cfd57d970048c4403b8f.tar.gz
aports-e2a6d62cc483fa1b85d4cfd57d970048c4403b8f.tar.bz2
aports-e2a6d62cc483fa1b85d4cfd57d970048c4403b8f.tar.xz
community/appstream: add -compose subpkg
-rw-r--r--community/appstream/APKBUILD24
1 files changed, 23 insertions, 1 deletions
diff --git a/community/appstream/APKBUILD b/community/appstream/APKBUILD
index 9b49f6994c..d5ee26bf87 100644
--- a/community/appstream/APKBUILD
+++ b/community/appstream/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=appstream
pkgver=0.13.1
-pkgrel=0
+pkgrel=1
pkgdesc="Provides a standard for creating app stores across distributions"
url="https://distributions.freedesktop.org/wiki/AppStream"
arch="all"
@@ -15,6 +15,16 @@ subpackages="$pkgname-dev $pkgname-doc $pkgname-qt $pkgname-lang $pkgname-dbg"
source="https://www.freedesktop.org/software/appstream/releases/AppStream-$pkgver.tar.xz"
builddir="$srcdir/AppStream-$pkgver"
+# librsvg doesn't exist on these arches
+case "$CARCH" in
+ s390x|mips*) ;;
+ *)
+ makedepends="$makedepends gdk-pixbuf-dev librsvg-dev pango-dev"
+ subpackages="$subpackages $pkgname-compose"
+ _conf="-Dcompose=true"
+ ;;
+esac
+
build() {
abuild-meson \
-Dqt=true \
@@ -25,6 +35,7 @@ build() {
-Dvapi=false \
-Dapt-support=false \
-Dgir=true \
+ $_conf \
. output
meson compile ${JOBS:+-j ${JOBS}} -C output
}
@@ -37,6 +48,15 @@ package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
+compose() {
+ pkgdesc="Building blocks to compose AppStream metadata"
+
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libappstream-compose* \
+ "$pkgdir"/usr/lib/girepository-1.0/AppStreamCompose* \
+ "$subpkgdir"/usr/lib
+}
+
qt() {
pkgdesc="Qt5 interface for AppStream"
license="LGPL-2.1-or-later"
@@ -44,4 +64,6 @@ qt() {
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libAppStreamQt.so.* "$subpkgdir"/usr/lib
}
+
+
sha512sums="9cf469bf604bbdd63815a4b824f13555eb7a9465dbed9f67b41ee1c2704454efa80f7653733dd23d7f7ce759531b826f821b58a606591e57bc86fe03d7a94a9f AppStream-0.13.1.tar.xz"