blob: f1b521f1d68d1dd5241898b5675cb0859e899597 (
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
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=appstream-glib
pkgver=0.8.2
pkgrel=1
pkgdesc="Library for AppStream metadata"
url="https://people.freedesktop.org/~hughsient/appstream-glib/"
arch="all"
license="LGPL-2.0-or-later"
depends="gsettings-desktop-schemas"
makedepends="
curl-dev
fontconfig-dev
freetype-dev
gdk-pixbuf-dev
glib-dev
gobject-introspection-dev
gperf
gtk+3.0-dev
json-glib-dev
libarchive-dev
libgcab-dev
meson
yaml-dev
"
subpackages="
$pkgname-dbg
$pkgname-dev
$pkgname-doc
$pkgname-lang
$pkgname-builder
$pkgname-bash-completion:bashcomp:noarch
"
source="https://people.freedesktop.org/~hughsient/appstream-glib/releases/appstream-glib-$pkgver.tar.xz"
build() {
abuild-meson \
-Db_lto=true \
-Ddep11=true \
-Dbuilder=true \
-Drpm=false \
-Dalpm=false \
-Dfonts=true \
-Dstemmer=false \
-Dman=true \
-Dgtk-doc=false \
-Dintrospection=true \
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
rm -rf "$pkgdir"/usr/share/installed-tests/appstream-glib
}
builder() {
pkgdesc="Library and command line tools for building AppStream metadata"
mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib \
"$subpkgdir"/usr/share/bash-completion/completions
mv "$pkgdir"/usr/bin/appstream-builder "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/share/bash-completion/completions/appstream-builder \
"$subpkgdir"/usr/share/bash-completion/completions/
mv "$pkgdir"/usr/lib/asb-plugins-5 \
"$subpkgdir"/usr/lib/
}
bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
amove usr/share/bash-completion/completions
}
sha512sums="
c9c21049ab43f5da8595aa07a3c2e097163a05b5e0fc030e4e3326136cd18127f04ad9edf08c12aea823b89048b43808cc60759cc26fcf2541cd9c1acbb29e28 appstream-glib-0.8.2.tar.xz
"
|