summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/mupdf/APKBUILD40
-rw-r--r--testing/mupdf/destdir.patch19
2 files changed, 59 insertions, 0 deletions
diff --git a/testing/mupdf/APKBUILD b/testing/mupdf/APKBUILD
new file mode 100644
index 000000000..aac11070a
--- /dev/null
+++ b/testing/mupdf/APKBUILD
@@ -0,0 +1,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"
diff --git a/testing/mupdf/destdir.patch b/testing/mupdf/destdir.patch
new file mode 100644
index 000000000..58c863b6b
--- /dev/null
+++ b/testing/mupdf/destdir.patch
@@ -0,0 +1,19 @@
+--- a/Makefile
++++ b/Makefile
+@@ -144,11 +144,11 @@
+ mandir ?= $(prefix)/share/man
+
+ install: $(MUXPS_LIB) $(MUPDF_LIB) $(FITZ_LIB) $(APPS)
+- install -d $(bindir) $(libdir) $(incdir) $(mandir)/man1
+- install $(MUXPS_LIB) $(MUPDF_LIB) $(FITZ_LIB) $(libdir)
+- install fitz/fitz.h pdf/mupdf.h xps/muxps.h $(incdir)
+- install $(PDF_APPS) $(XPS_APPS) $(MUPDF) $(bindir)
+- install $(wildcard apps/man/*.1) $(mandir)/man1
++ install -d $(DESTDIR)/$(bindir) $(DESTDIR)/$(libdir) $(DESTDIR)/$(incdir) $(DESTDIR)/$(mandir)/man1
++ install $(MUXPS_LIB) $(MUPDF_LIB) $(FITZ_LIB) $(DESTDIR)/$(libdir)
++ install fitz/fitz.h pdf/mupdf.h xps/muxps.h $(DESTDIR)/$(incdir)
++ install $(PDF_APPS) $(XPS_APPS) $(MUPDF) $(DESTDIR)/$(bindir)
++ install $(wildcard apps/man/*.1) $(DESTDIR)/$(mandir)/man1
+
+ # --- Clean and Default ---
+