summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 19 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3a73f9227753..4f3d1fc27181 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,33 +2,43 @@
pkgname=zathura-pdf-mupdf-git
pkgrel=1
-pkgver=0.3.0.3.gbdf48aa
+pkgver=0.3.5.1.g878e31c
pkgdesc="PDF support for zathura by using the mupdf library"
arch=('i686' 'x86_64')
url="http://pwmt.org/projects/zathura-pdf-mupdf"
license=('custom')
depends=('zathura-git' 'libmupdf>=1.9')
-makedepends=('git')
+makedepends=('git' 'python-sphinx' 'intltool' 'meson')
+checkdepends=('check')
conflicts=('zathura-pdf-mupdf')
provides=('zathura-pdf-mupdf')
source=('zathura-pdf-mupdf::git+https://git.pwmt.org/pwmt/zathura-pdf-mupdf.git#branch=develop')
md5sums=('SKIP')
_gitname=zathura-pdf-mupdf
+prepare() {
+ mkdir -p build
+}
+
build() {
- cd "$srcdir/$_gitname"
- make
+ cd build
+ meson --prefix=/usr --buildtype=release $srcdir/$_gitname
+ ninja
+}
+
+check() {
+ cd build
+ ninja test
}
package() {
- cd "$srcdir/$_gitname"
- make DESTDIR="$pkgdir/" install
- install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ cd build
+ DESTDIR="$pkgdir/" ninja install
}
pkgver() {
- cd "$srcdir/$_gitname"
- local ver="$(git describe --long --always)"
+ cd "$_gitname"
+ local ver="$(git describe --long)"
printf "%s" "${ver//-/.}"
}