aboutsummaryrefslogtreecommitdiffstats
path: root/community/evince/APKBUILD
blob: 8c21d4ca9e390db207b24ae9ad67979cb9da3274 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=evince
pkgver=3.20.1
pkgrel=0
pkgdesc="simple document viewer for GTK+"
url="http://projects.gnome.org/evince/"
arch="all"
license="GPL"
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"
makedepends="$depends_dev intltool itstool gnome-doc-utils
	adwaita-icon-theme-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs"
source="http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz
	"

_builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-nautilus \
		--without-keyring \
		--enable-introspection \
		--disable-static \
		--enable-comics \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

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
}


md5sums="eb05ece124d93d057211643b7ebdb145  evince-3.20.1.tar.xz"
sha256sums="fc7ac23036939c24f02e9fed6dd6e28a85b4b00b60fa4b591b86443251d20055  evince-3.20.1.tar.xz"
sha512sums="33f50627f26f241ea94a05cf421363f56439c35169e7beb1555885cd7641a8bb5a50af6710143c66d21220dcd1dc9e1f00bd902b9e2c64a6a6fa1243a5e2eb60  evince-3.20.1.tar.xz"