aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mupdf/APKBUILD
blob: 8cd9d2053a391fa7c2871f2c8fc8be623e73bbf3 (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
# Maintainer: Michael Zhou <zhoumichaely@gmail.com>
pkgname=mupdf
pkgver=1.6
pkgrel=1
pkgdesc="A lightweight PDF and XPS viewer"
url="http://mupdf.com"
arch="all"
license="GPL3+"
depends=""
makedepends="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
	mupdf-openjpeg-2.1.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
	rm -r thirdparty
}

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
4a8772b09af5152d9bf58e69834b74bf  mupdf-openjpeg-2.1.patch"
sha256sums="9813ee330950a641364181649ebd369c947adbcea9d41ed953ec5365640ea563  mupdf-1.6-source.tar.gz
7b49af879df5eb2c79884a0983635fa335422edc9854bc4fbc44f653892827f2  mupdf-openjpeg-2.1.patch"
sha512sums="3a47d47b81550f531039153385fc22bb81a24df334706e23b7f118d08d97bb103566eef2a6ea3602ebe242fcb9d53304bb9d8230109572204491415a3a1b0645  mupdf-1.6-source.tar.gz
0a07dc0a0312ef0b6a20f6a89da7a2010008cf804a1c9b33667b17f263a69e46047a34dcb24e8015a98a61e28e1e302dc302c0fbb7303a61b00d9490146b7b83  mupdf-openjpeg-2.1.patch"