blob: f18241558dbb4a62e99f980454853b59f3baaf2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Pablo Correa Gomez <ablocorrea@hotmail.com>
pkgname=appstream
pkgver=0.15.5
pkgrel=2
pkgdesc="Provides a standard for creating app stores across distributions"
url="https://distributions.freedesktop.org/wiki/AppStream"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
curl-dev
glib-dev
gobject-introspection-dev
gperf
itstool
libsoup-dev
libxml2-dev
libxmlb-dev
meson
qt5-qtbase-dev
yaml-dev
"
triggers="$pkgname.trigger=/usr/share/app-info/*:/var/cache/swcatalog/xml"
install="$pkgname.post-install $pkgname.post-upgrade"
subpackages="
$pkgname-dbg
$pkgname-dev
$pkgname-doc
$pkgname-qt
$pkgname-lang
"
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|riscv64) ;;
*)
makedepends="$makedepends cairo-dev fontconfig-dev
gdk-pixbuf-dev librsvg-dev pango-dev"
subpackages="$subpackages $pkgname-compose"
_conf="-Dcompose=true"
;;
esac
build() {
abuild-meson \
-Dqt=true \
-Ddocs=false \
-Dapidocs=false \
-Dinstall-docs=false \
-Dstemming=false \
-Dvapi=false \
-Dapt-support=false \
-Dgir=true \
$_conf \
. output
meson compile ${JOBS:+-j ${JOBS}} -C output
}
check() {
meson test --no-rebuild --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
# Remove installed-tests, there is no switch to disable installing them
rm -rf "$pkgdir"/usr/share/installed-tests
}
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
# Needs so:libappstream-compose.so and thus needs
# to be moved to prevent a recursive dependency.
amove usr/libexec/appstreamcli-compose
}
qt() {
pkgdesc="Qt5 interface for AppStream"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libAppStreamQt.so.* "$subpkgdir"/usr/lib
}
sha512sums="
83202a8db9a31e4328b2a831b02e65389aad1ba95a4c2b2709084fb843cb3675af6fac73f932a31bb3a6d3ff5db85a863c01528be67d9bbd3b9614a978239771 AppStream-0.15.5.tar.xz
"
|