summaryrefslogtreecommitdiff
path: root/user/evince/APKBUILD
blob: c1b07dc43a7630fd31aed890d29ec533fca9d425 (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
69
70
71
72
73
74
75
76
77
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=evince
pkgver=3.31.4
pkgrel=1
pkgdesc="GNOME document viewer"
url="https://wiki.gnome.org/Apps/Evince"
arch="all"
license="GPL-2.0+ AND MIT AND BSD-3-Clause AND LGPL-2.0+ AND X11 AND LGPL-3.0-only AND Public-Domain AND LGPL-2.1+"
depends="gst-plugins-base gst-plugins-good"
makedepends="djvulibre-dev glib-dev gobject-introspection-dev
	gsettings-desktop-schemas-dev gstreamer-dev gst-plugins-base-dev
	gtk+3.0-dev itstool libarchive-dev libexecinfo-dev libgxps-dev
	libsecret-dev libspectre-dev libxml2-dev libxml2-utils poppler-dev
	tiff-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://ftp.gnome.org/pub/gnome/sources/evince/3.31/evince-$pkgver.tar.xz"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--without-gspell \
		--disable-nautilus \
		--enable-introspection \
		--enable-ps

	# our msgfmt(1) can't do --desktop
	cp data/org.gnome.Evince.desktop.in data/org.gnome.Evince.desktop
	cp data/org.gnome.Evince-previewer.desktop.in \
		data/org.gnome.Evince-previewer.desktop
	cp backend/pdf/evince-pdfdocument.metainfo.xml.in \
		backend/pdf/evince-pdfdocument.metainfo.xml
	cp backend/pdf/pdfdocument.evince-backend.desktop.in \
		backend/pdf/pdfdocument.evince-backend
	cp backend/djvu/evince-djvudocument.metainfo.xml.in \
		backend/djvu/evince-djvudocument.metainfo.xml
	cp backend/djvu/djvudocument.evince-backend.desktop.in \
		backend/djvu/djvudocument.evince-backend
	cp backend/tiff/evince-tiffdocument.metainfo.xml.in \
		backend/tiff/evince-tiffdocument.metainfo.xml
	cp backend/tiff/tiffdocument.evince-backend.desktop.in \
		backend/tiff/tiffdocument.evince-backend
	cp backend/comics/evince-comicsdocument.metainfo.xml.in \
		backend/comics/evince-comicsdocument.metainfo.xml
	cp backend/comics/comicsdocument.evince-backend.desktop.in \
		backend/comics/comicsdocument.evince-backend
	cp backend/xps/evince-xpsdocument.metainfo.xml.in \
		backend/xps/evince-xpsdocument.metainfo.xml
	cp backend/xps/xpsdocument.evince-backend.desktop.in \
		backend/xps/xpsdocument.evince-backend
	cp backend/ps/evince-psdocument.metainfo.xml.in \
		backend/ps/evince-psdocument.metainfo.xml
	cp backend/ps/psdocument.evince-backend.desktop.in \
		backend/ps/psdocument.evince-backend
	cp org.gnome.Evince.appdata.xml.in org.gnome.Evince.appdata.xml

	# we now return you to your regularly scheduled build
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="bed3950fb5ec58855a915c9e06b158924fd07b41c022e281cbada30174d8918c69a29f3408d27db2f1df70e2ba6bc2c35a6f0d5075627397682b9602a6f94a0f  evince-3.31.4.tar.xz"