summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c346718db903eb2c6c749b407e9bfe6e600e184e (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
# Maintainer: ava1ar <mail(at)ava1ar(dot)me>

_base=okular-backend-mupdf
pkgname=("$_base-git")
pkgver=r54.8a03617
pkgrel=1
pkgdesc="MuPDF-based backend for Okular (git version)"
arch=('i686' 'x86_64')
license=('GPL')
depends=('okular' 'openjpeg2' 'mupdf')
makedepends=('gcc' 'automoc4' 'cmake' 'git' 'libmupdf')
url="https://github.com/xyzz/okular-backend-mupdf"
source=("git+$url")
sha1sums=('SKIP')
conflicts=("$_base")
provides=("$_base")

pkgver() {
	cd "$_base"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd $srcdir/$_base
	rm -rf build
	mkdir build && cd build
	cmake -DCMAKE_INSTALL_PREFIX:PATH=$pkgdir/usr -DCMAKE_INSTALL_LIBDIR=$pkgdir/usr/lib/qt .. && make -j$(nproc)
}

package() {
	cd $srcdir/$_base/build
	make install
}