aboutsummaryrefslogtreecommitdiffstats
path: root/community/evince/APKBUILD
blob: e315e278b667669a8215906e4b53353f156ce381 (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
# 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.34.0
pkgrel=0
pkgdesc="simple document viewer for GTK+"
url="https://wiki.gnome.org/Apps/Evince"
arch="all"
license="GPL-2.0-or-later"
depends="adwaita-icon-theme"
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 py-six libspectre-dev"
makedepends="$depends_dev intltool itstool gnome-doc-utils
	adwaita-icon-theme-dev gnome-common automake autoconf
	gtk-doc yelp-tools appstream-glib-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $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() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-nautilus \
		--without-keyring \
		--without-gspell \
		--enable-introspection \
		--disable-static \
		--enable-comics
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

check() {
	make check
}

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="41e59cca65003e6abca934f770b0504af13644222e88223b1b713aafd6b3335873422e914775f79182fe45de4d7fda3767cbb41c6088ff47fa8560e97b19bde2  evince-3.34.0.tar.xz"