summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f3d1fc27181476803362673a1ee346e151da97d (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
41
42
43
44
45
# Maintainer: Moritz Lipp <mlq@pwmt.org>

pkgname=zathura-pdf-mupdf-git
pkgrel=1
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' '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 build
  meson --prefix=/usr --buildtype=release $srcdir/$_gitname
  ninja
}

check() {
  cd build
  ninja test
}

package() {
  cd build
  DESTDIR="$pkgdir/" ninja install
}

pkgver() {
  cd "$_gitname"
  local ver="$(git describe --long)"
  printf "%s" "${ver//-/.}"
}

# vim:set ts=2 sw=2 et: