blob: 1d38ea6230decdfc9747efbff2dbd3b4a0bacecb (
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
97
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=appstream
pkgver=0.15.3
pkgrel=1
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/*"
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
fix-compose-screenshots.patch
"
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 -v -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="
f38eda7cb8da95fca2dbbd1aecca17ce74b2e3c438a82cffbd7485b24a3588fccbc91d8c5eb83d2840da1d9bde4e8ed73bcc1c68809581c982fac753f622b866 AppStream-0.15.3.tar.xz
101ae7e2f6113a23801f1d9e8fcea13f63df98724452c4c926b8641979ae8665c1514f4ced30602d855ecdb8772ff2bb3a779d3b171274047ffbf0b9ece71495 fix-compose-screenshots.patch
"
|