summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89d611f1f38086e41a501393fc3ddad10ef9b7d6 (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
# Maintainer: a821
# Contributor: Moritz Lipp <mlq@pwmt.org>

pkgname=zathura-djvu-git
pkgrel=1
pkgver=0.2.9.r3.g56b0fd5
pkgdesc="DjVu support for zathura"
arch=('x86_64')
url="https://pwmt.org/projects/zathura-djvu"
license=('custom')
depends=('zathura-git' 'djvulibre')
makedepends=('git' 'meson' 'ninja')
conflicts=('zathura-djvu')
provides=('zathura-djvu')
source=("$pkgname::git+https://git.pwmt.org/pwmt/zathura-djvu.git#branch=develop")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --tags --long | sed 's/-/.r/;s/-/./g'
}

build() {
  cd "$pkgname"
  arch-meson build
  ninja -C build
}

package() {
  cd "$pkgname"
  DESTDIR="$pkgdir/" ninja -C build install
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}

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