1 # Maintainer: karabaja4 <karabaja4@archlinux.us>
6 pkgdesc="mupdf with sane scrolling hack, and a DPI detection hack."
10 depends=('freetype2' 'libjpeg' 'jbig2dec' 'openjpeg' 'libxext')
11 conflicts=('mupdf' 'mupdf-git')
13 source=("http://mupdf.com/download/mupdf-$pkgver-source.tar.gz"
16 md5sums=('76640ee16a797a27fe49cc0eaa87ce3a'
17 '7719aaad7eade8153fd17e0d41e8f5eb'
18 'ede4f578c22a9a75e44ea84223c63016')
21 cd "$srcdir/mupdf-$pkgver"
24 msg "Applying scroll patch..."
25 patch -p1 -i ../scroll_hack.patch
28 msg "Applying dpi patch..."
29 patch -p1 -i ../dpi_hack.patch
31 make build=release prefix="$pkgdir/usr"
37 cd "$srcdir/mupdf-$pkgver"
38 make build=release prefix="${pkgdir}/usr" install
41 msg "Renaming executables"
42 cd "${pkgdir}/usr/bin"
47 cd "$srcdir/mupdf-$pkgver"
49 sed -i "s/mupdf.xpm/mupdf/" debian/mupdf.desktop
50 sed -i "s/application\/x-pdf/application\/x-pdf/" debian/mupdf.desktop
53 cd "$srcdir/mupdf-$pkgver/debian"
54 install -Dm644 mupdf.desktop "$pkgdir/usr/share/applications/mupdf.desktop"
55 install -Dm644 mupdf.xpm "$pkgdir/usr/share/pixmaps/mupdf.xpm"