blob: 6f757833d2228cc7c1f93081260a124de2d2b5cf (
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
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Michael Zhou <zhoumichaely@gmail.com>
pkgname=mupdf
pkgver=1.9a
pkgrel=0
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 harfbuzz-dev"
install=""
subpackages="$pkgname-doc $pkgname-dev"
source="http://mupdf.com/downloads/${pkgname}-${pkgver}-source.tar.gz
mupdf-openjpeg-2.1.patch
"
builddir="$srcdir/$pkgname-${pkgver}-source"
prepare() {
default_prepare || return 1
cd "$builddir"
for file in thirdparty/*; do
[ "${file##*/}" != "mujs" ] && rm -rf "$file"
done
sed '/^JBIG2DEC_CFLAGS :=/s|$| -I./include/mupdf|' \
-i Makethird || return 1
}
build() {
cd "$builddir"
make prefix=/usr || return 1
}
package() {
cd "$builddir"
make prefix=/usr DESTDIR="$pkgdir" install || return 1
ln -s /usr/bin/$pkgname-x11 "$pkgdir"/usr/bin/$pkgname
}
md5sums="658b90788a57d858dcb069cf326e11c3 mupdf-1.9a-source.tar.gz
4a8772b09af5152d9bf58e69834b74bf mupdf-openjpeg-2.1.patch"
sha256sums="8015c55f4e6dd892d3c50db4f395c1e46660a10b460e2ecd180a497f55bbc4cc mupdf-1.9a-source.tar.gz
7b49af879df5eb2c79884a0983635fa335422edc9854bc4fbc44f653892827f2 mupdf-openjpeg-2.1.patch"
sha512sums="9f804fd65c2dc6b7a3bd73961b1f1a8bf93d52903cccf6302acd6982dfa433125a3b8e77b808984921aee097877280fa21aafb87468cd0a8e4cfa900284a262b mupdf-1.9a-source.tar.gz
0a07dc0a0312ef0b6a20f6a89da7a2010008cf804a1c9b33667b17f263a69e46047a34dcb24e8015a98a61e28e1e302dc302c0fbb7303a61b00d9490146b7b83 mupdf-openjpeg-2.1.patch"
|