summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD55
-rw-r--r--desktop10
3 files changed, 90 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..16abe258fbc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = mupdf-git
+ pkgdesc = Lightweight PDF, XPS and CBZ viewer
+ pkgver = 20150605.c22548d
+ pkgrel = 1
+ url = http://mupdf.com/
+ arch = i686
+ arch = x86_64
+ arch = armv7h
+ license = GPL3
+ makedepends = git
+ depends = freetype2
+ depends = jbig2dec
+ depends = libjpeg
+ depends = libxext
+ provides = mupdf=1.7.git
+ conflicts = mupdf
+ options = staticlibs
+ backup = usr/bin/mupdf
+ source = git://git.ghostscript.com/mupdf.git
+ source = desktop
+ sha1sums = SKIP
+ sha1sums = 31573e5da3fbf0162c0926511fc9858f2052fa6c
+
+pkgname = mupdf-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5ca6904647f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+# Contributor: Stefan Husmann <stefan-husmannt-online.de>
+# Contributor: Army <uli armbruster>
+
+pkgname=mupdf-git
+_pkgname=mupdf
+pkgver=20150605.c22548d
+pkgrel=1
+pkgdesc='Lightweight PDF, XPS and CBZ viewer'
+arch=('i686' 'x86_64' 'armv7h')
+url='http://mupdf.com/'
+license=('GPL3')
+makedepends=('git')
+depends=('freetype2' 'jbig2dec' 'libjpeg' 'libxext')
+source=('git://git.ghostscript.com/mupdf.git'
+ 'desktop')
+sha1sums=('SKIP'
+ '31573e5da3fbf0162c0926511fc9858f2052fa6c')
+
+conflicts=("${_pkgname}")
+provides=("${_pkgname}=1.7.git")
+backup=('usr/bin/mupdf')
+options=('staticlibs')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ git log -1 --format='%cd.%h' --date=short | tr -d -
+}
+
+prepare() {
+ cd "${srcdir}/${_pkgname}"
+ git submodule update --init thirdparty/openjpeg
+ git submodule update --init thirdparty/mujs
+
+ # needed for zathura-pdf-mupdf
+ CFLAGS+=' -fPIC'
+ CXXFLAGS+=' -fPIC'
+
+ # fix memento.h confusion
+ sed '/^JBIG2DEC_CFLAGS :=/s|$| -I./include/mupdf|' -i Makethird
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ make build=release prefix="${pkgdir}"/usr
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+ make build=release prefix="${pkgdir}"/usr install
+ install -Dm644 build/release/libmujs.a "${pkgdir}"/usr/lib
+ install -Dm644 ../desktop "${pkgdir}"/usr/share/applications/mupdf.desktop
+ find "${pkgdir}"/usr/{include,lib,share} -type f | xargs chmod 644
+ ln -s mupdf-x11 "${pkgdir}"/usr/bin/mupdf
+}
diff --git a/desktop b/desktop
new file mode 100644
index 00000000000..4e7237f9f83
--- /dev/null
+++ b/desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=MuPDF
+GenericName=PDF file viewer
+Exec=mupdf %f
+Icon=mupdf
+Terminal=false
+Type=Application
+MimeType=application/pdf;application/x-pdf;application/x-cbz;application/oxps;application/vnd.ms-xpsdocument;image/jpeg;image/pjpeg;image/png;image/tiff;image/x-tiff
+Categories=Viewer;Graphics;
+Actions=View