aboutsummaryrefslogtreecommitdiffstats
path: root/community/evince/APKBUILD
blob: 63e5150cc492bdceb10eccf9e27b534c92bb265d (plain) (blame)
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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=evince
pkgver=3.36.7
pkgrel=0
pkgdesc="simple document viewer for GTK+"
url="https://wiki.gnome.org/Apps/Evince"
arch="all !s390x !mips !mips64" # Limited by adwaita-icon-theme needing librsvg
license="GPL-2.0-or-later"
depends="adwaita-icon-theme gsettings-desktop-schemas"
depends_dev="gtk+3.0-dev poppler-dev libsm-dev libevent-dev libxrandr-dev
	libx11-dev libxcursor-dev libxcomposite-dev libxi-dev util-linux-dev
	tiff-dev gobject-introspection-dev libxml2-dev libspectre-dev"
makedepends="$depends_dev itstool meson libexecinfo-dev nautilus-dev
	adwaita-icon-theme-dev gtk-doc yelp-tools appstream-glib-dev
	libgxps-dev gspell-dev gstreamer-dev libsecret-dev gst-plugins-base-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() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		-Dsystemduserunitdir=no \
		-Dgtk_doc=false \
		output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

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="dacc26d2d75c3dcadceb0a35c995ae3501bd91e84632cdf87decd359350e74032444707ea152e24c01fb57fe0ef2a426813a33919833cefdeb8699f8c642d910  evince-3.36.7.tar.xz"