mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 10:12:59 +01:00
41 lines
906 B
Plaintext
41 lines
906 B
Plaintext
# Maintainer: Michael Zhou <zhoumichaely@gmail.com>
|
|
pkgname=mupdf
|
|
pkgver=1.0
|
|
pkgrel=0
|
|
pkgdesc="A lightweight PDF and XPS viewer"
|
|
url="http://mupdf.com"
|
|
arch="all"
|
|
license="GPL3+"
|
|
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-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
|
|
}
|
|
|
|
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="d986ab98e2b035b7abd61afc474562b3 mupdf-1.0-source.tar.gz
|
|
50902883b1152b78bbd8223c6a1aa75e destdir.patch"
|