aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mupdf/APKBUILD
blob: aac11070aa6d18cf7fcbafe77cec77124d09e129 (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=0.8.165
pkgrel=0
pkgdesc="a lightweight PDF and XPS viewer"
url="http://mupdf.com"
arch="x86 x86_64"
license="GPLv3"
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"
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="a95813737924e60d87a944d52b6a5120  mupdf-0.8.165-source.tar.gz
08c8b77b80544abc65160e4b77f6f328  destdir.patch"