summaryrefslogtreecommitdiffstats
path: root/testing/mupdf/APKBUILD
blob: 11b90998cfc80ad0f64cf7998b87b0a1395266d9 (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
# Maintainer: Michael Zhou <zhoumichaely@gmail.com>
pkgname=mupdf
pkgver=1.0
pkgrel=0
pkgdesc="A lightweight PDF and XPS viewer"
url="http://mupdf.com"
arch="all"
license="GPL3+"
depends=""
makedepends="pkgconfig freetype-dev jpeg-dev jbig2dec-dev libx11-dev 
		libxext-dev openjpeg-dev"
install=""
subpackages="$pkgname-doc"
source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver-source.tar.gz
		destdir.patch"

_builddir="$srcdir/$pkgname-$pkgver-source"
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"
	make prefix=/usr || return 1
}

package() {
	cd "$_builddir"
	make prefix=/usr DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="d986ab98e2b035b7abd61afc474562b3  mupdf-1.0-source.tar.gz
50902883b1152b78bbd8223c6a1aa75e  destdir.patch"