summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f5cc4c6a3d013631b26a69f4fef057cf5d881c7 (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
# Maintainer: Lex Black <autumn-wind at web dot de>
# Contributor: Moritz Lipp <mlq@pwmt.org>

_gitname=zathura-cb
pkgname=zathura-cb-git
pkgver=0.1.8.r7.gd03db86
pkgrel=1
pkgdesc="Comic book support for zathura"
arch=('i686' 'x86_64')
url="https://pwmt.org/projects/zathura-cb/"
license=('custom:zlib')
depends=('zathura' 'libarchive' 'desktop-file-utils')
makedepends=('git' 'meson' 'ninja')
conflicts=('zathura-cb')
provides=('zathura-cb')
source=(${_gitname}::git+https://git.pwmt.org/pwmt/zathura-cb.git#branch=develop)
md5sums=('SKIP')


pkgver() {
  cd "$_gitname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  arch-meson "$_gitname" build
  meson compile -C build
}

package() {
  meson install -C build --destdir "$pkgdir"

  install -Dm664 "$_gitname"/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

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