blob: 687bc42f347222e44770397f8ab8467a6c9656bd (
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
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=evince
pkgver=42.3
pkgrel=0
pkgdesc="simple document viewer for GTK+"
url="https://wiki.gnome.org/Apps/Evince"
# s390x blocked by mozjs91 -> nautilus-dev
arch="all !s390x"
license="GPL-2.0-or-later"
depends="$pkgname-libs=$pkgver-r$pkgrel
adwaita-icon-theme
gsettings-desktop-schemas
"
depends_dev="
gobject-introspection-dev
gtk+3.0-dev
libspectre-dev
libxml2-dev
poppler-dev
tiff-dev
"
makedepends="
$depends_dev
adwaita-icon-theme-dev
cairo-dev
dbus-dev
djvulibre-dev
gdk-pixbuf-dev
glib-dev
gnome-desktop-dev
gspell-dev
gst-plugins-base-dev
gstreamer-dev
itstool
libarchive-dev
libgxps-dev
libhandy1-dev
libsecret-dev
meson
nautilus-dev
"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-nautilus $pkgname-libs"
source="https://download.gnome.org/sources/evince/${pkgver%.*}/evince-$pkgver.tar.xz
"
# secfixes:
# 3.32.0-r1:
# - CVE-2019-11459
# 3.24.0-r2:
# - CVE-2017-1000083
build() {
abuild-meson \
-Dsystemduserunitdir=no \
-Dgtk_doc=false \
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
}
nautilus() {
pkgdesc="$pkgname (Nautilus extension)"
install_if="$pkgname=$pkgver-r$pkgrel nautilus"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/nautilus "$subpkgdir"/usr/lib
}
libs() {
default_libs
mv "$pkgdir"/usr/lib/* "$subpkgdir"/usr/lib/
}
doc() {
default_doc
if [ -d "$pkgdir"/usr/share/help ]; then
mv "$pkgdir"/usr/share/help "$subpkgdir"/usr/share/
fi
}
sha512sums="
4ec212e90c3fd259a2afe191592c135938766b11c6891297a10dc34152f69bba9350a467c394ec6cacde5bd16ced02d0c38b7a112dd7d676f53b12fd1b29a62e evince-42.3.tar.xz
"
|