summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c03ade74bd097fdc9a1c38b8d7ae201eedcceeec (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: Moritz Lipp <mlq@pwmt.org>

pkgname=zathura-epub-git
pkgrel=1
pkgver=4a2e037
pkgdesc="EPUB support for zathura"
arch=('i686' 'x86_64')
url="http://pwmt.org/projects/zathura"
license=('custom')
depends=('zathura>=0.2.0' 'calibre')
makedepends=('git')
conflicts=('zathura-epub')
provides=('zathura-epub')
source=('zathura-epub::git+https://git.pwmt.org/pwmt/zathura-epub.git#branch=develop')
md5sums=('SKIP')
_gitname=zathura-epub

build() {
  cd "$srcdir/$_gitname"
  make
}

package() {
  cd "$srcdir/$_gitname"
  make DESTDIR="$pkgdir/" install
  install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

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

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