summaryrefslogtreecommitdiff
path: root/community/evince/APKBUILD
blob: 0f91b8ff86fc489596baa3e253f206361f93465f (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: team/gnome <ablocorrea@hotmail.com>
pkgname=evince
pkgver=44.1
pkgrel=3
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="
	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
	desktop-file-utils
	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
	"
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() {
	abuild-meson \
		-Db_lto=true \
		-Dsystemduserunitdir=no \
		-Dgtk_doc=false \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

nautilus() {
	pkgdesc="$pkgname (Nautilus extension)"
	install_if="$pkgname=$pkgver-r$pkgrel nautilus"

	amove usr/lib/nautilus
}

libs() {
	default_libs
	mv "$pkgdir"/usr/lib/* "$subpkgdir"/usr/lib/
}

doc() {
	default_doc
	if [ -d "$pkgdir"/usr/share/help ]; then
		amove usr/share/help
	fi
}

sha512sums="
978aa58f318bf63b0cc3619b625384188a36bcda3cfa632239267a54e0a6bdcc99fe6127c328f094431daa90097615975345cdb53d8a80f051ac1674f215c696  evince-44.1.tar.xz
"