summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3425364aca2dcf4ee67af784e487074266122094 (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
# Contributor: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Brad Fanella <bradfanella@archlinux.us>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: tocer.deng <tocer.deng@gmail.com>

pkgname=apvlv-git
pkgver=0.1.5.29.g41f68a9
pkgrel=1
pkgdesc='PDF/DJVU/TXT viewer which behaves like vi'
arch=('x86_64')
url="http://naihe2010.github.com/apvlv/"
license=('GPL2')
depends=('gtk3' 'poppler-glib' 'djvulibre')
makedepends=('git' 'cmake')
conflicts=('apvlv')
provids=('apvlv')
source=(git+https://github.com/naihe2010/apvlv.git)
backup=('etc/apvlvrc')
md5sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  printf %s "$(git describe --tags|tr - .|cut -c2-)"
}

build() {
  cd ${pkgname%-git}

  [[ -d build ]] || mkdir -p build
  cd build

  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
        -DAPVLV_WITH_DJVU=yes -DAPVLV_WITH_TXT=yes \
        -DAPVLV_WITH_UMD=no ..

  make
}

package() {
  cd ${pkgname%-git}/build

  make DESTDIR="$pkgdir" install
}