summaryrefslogtreecommitdiffstats
path: root/testing/mupdf/APKBUILD
blob: 2f22e4cc06106d8ad919cd15c39204f386fac897 (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.6
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://mupdf.com/downloads/$pkgname-$pkgver-source.tar.gz"

_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="8d69db41ae9e0b6807b76bb6ed70dc2f  mupdf-1.6-source.tar.gz"
sha256sums="9813ee330950a641364181649ebd369c947adbcea9d41ed953ec5365640ea563  mupdf-1.6-source.tar.gz"
sha512sums="3a47d47b81550f531039153385fc22bb81a24df334706e23b7f118d08d97bb103566eef2a6ea3602ebe242fcb9d53304bb9d8230109572204491415a3a1b0645  mupdf-1.6-source.tar.gz"