blob: 9160602a0ff39ecc10ca9a89b377ac03b14bc6bf (
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
|
# Maintainer: Qiu Wenbo <qiuwenbo@gnome.org>
pkgbase=papers
pkgname=(
papers
papers-lib-docs
)
pkgver=47.0
pkgrel=1
pkgdesc="Document viewer (PDF, PostScript, XPS, djvu, tiff, cbr, cbz, cb7, cbt)"
url="https://apps.gnome.org/Papers/"
arch=(x86_64)
license=(GPL)
depends=(
dconf
djvulibre
gsfonts
gtk4
gvfs
libarchive
libgxps
libadwaita
libspectre
exempi
poppler-glib
)
makedepends=(
appstream-glib
gi-docgen
git
gobject-introspection
meson
yelp-tools
rust
libnautilus-extension
glib2-devel
)
_commit=9e3835083645832a80313a41468d76ebdbab59a9 # tags/47.0^0
source=("git+https://gitlab.gnome.org/GNOME/Incubator/papers.git#commit=${_commit}")
b2sums=('SKIP')
pkgver() {
cd papers
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd papers
}
build() {
local meson_options=(
-D ps=enabled
)
arch-meson papers build "${meson_options[@]}"
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
_pick() {
local p="$1" f d; shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
package_papers() {
provides=(libpps{document,view}-4.0.so)
groups=(gnome)
meson install -C build --destdir "$pkgdir"
_pick lib-docs "$pkgdir"/usr/share/doc/lib*
}
package_papers-lib-docs() {
pkgdesc+=" (library API documentation)"
depends=()
mv lib-docs/* "$pkgdir"
}
# vim:set sw=2 sts=-1 et:
|