blob: 7acad9524826447d32f241efaab61d141735dff0 (
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
49
50
51
|
# Maintainer: Michael Zhou <zhoumichaely@gmail.com>
pkgname=mupdf
pkgver=1.6
pkgrel=2
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 $pkgname-dev"
source="http://mupdf.com/downloads/$pkgname-$pkgver-source.tar.gz
mupdf-openjpeg-2.1.patch
shared-lib.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
ln -s libmupdf.so.0 "$pkgdir"/usr/lib/libmupdf.so
}
md5sums="8d69db41ae9e0b6807b76bb6ed70dc2f mupdf-1.6-source.tar.gz
4a8772b09af5152d9bf58e69834b74bf mupdf-openjpeg-2.1.patch
fab3502b8bcf3b6c4e5698f1cb33611d shared-lib.patch"
sha256sums="9813ee330950a641364181649ebd369c947adbcea9d41ed953ec5365640ea563 mupdf-1.6-source.tar.gz
7b49af879df5eb2c79884a0983635fa335422edc9854bc4fbc44f653892827f2 mupdf-openjpeg-2.1.patch
43c6a6ea06757e63ae581be89338f38ec22beb504ca6e5ee3073ef1585aabe01 shared-lib.patch"
sha512sums="3a47d47b81550f531039153385fc22bb81a24df334706e23b7f118d08d97bb103566eef2a6ea3602ebe242fcb9d53304bb9d8230109572204491415a3a1b0645 mupdf-1.6-source.tar.gz
0a07dc0a0312ef0b6a20f6a89da7a2010008cf804a1c9b33667b17f263a69e46047a34dcb24e8015a98a61e28e1e302dc302c0fbb7303a61b00d9490146b7b83 mupdf-openjpeg-2.1.patch
66bc7474473987a30009e54fbd12b49cb6682f12c86f5d9b9e6f6efd4c162d04d55a65f9d8373517e958951608c9e49eade8b63b140441c04ad2e75eebb8f053 shared-lib.patch"
|