blob: 5763c57a15f9f43f2ed6ed2f006e089c2e5831f1 (
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
|
# $Id: PKGBUILD 87740 2013-04-05 21:06:47Z bpiotrowski $
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Brad Fanella <bradfanella@archlinux.us>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Pierre-Paul Paquin <pierrepaulpaquin@gmail.com>
# Contributor: xduugu (.desktop and install files)
pkgname=mupdf
pkgver=1.2
pkgrel=2
pkgdesc='Lightweight PDF and XPS viewer'
arch=('i686' 'x86_64')
url='http://mupdf.com'
license=('GPL3')
depends=('freetype2' 'libjpeg' 'jbig2dec' 'openjpeg' 'libxext' 'desktop-file-utils' 'xdg-utils')
install=mupdf.install
source=(https://mupdf.googlecode.com/files/$pkgname-$pkgver-source.zip)
sha256sums=('9bc9e31ec27c091dad37f70940bd799e46ab6da4299bc58e803bff3dbb07dc3b')
build() {
CFLAGS+=' -fPIC'
CXXFLAGS+=' -fPIC'
cd "$srcdir"/$pkgname-$pkgver-source
rm -rf thirdparty
make build=release prefix=/usr
}
package() {
cd "$srcdir"/$pkgname-$pkgver-source
make build=release prefix="$pkgdir"/usr install
sed -i 's/mupdf.xpm/mupdf/' debian/mupdf.desktop
sed -i 's/application\/x-pdf/application\/x-pdf/' debian/mupdf.desktop
install -Dm644 debian/mupdf.desktop "$pkgdir"/usr/share/applications/mupdf.desktop
install -Dm644 debian/mupdf.xpm "$pkgdir"/usr/share/pixmaps/mupdf.xpm
chmod 644 "$pkgdir"/usr/lib/libfitz.a
}
|