summaryrefslogtreecommitdiff
path: root/community/zathura/PKGBUILD
blob: 111b2b13bfa0a8384c8b78efc629f0b82b112d94 (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
# $Id: PKGBUILD 67873 2012-03-15 15:50:48Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: ML <neldoreth>

pkgname=zathura
pkgver=0.1.1
pkgrel=4
pkgdesc="a document viewer"
arch=('i686' 'x86_64')
url="http://pwmt.org/projects/zathura/"
license=('custom')
depends=('girara-gtk2' 'cairo' 'sqlite3')
makedepends=('docutils')
optdepends=('zathura-djvu' 'zathura-pdf-poppler' 'zathura-ps')
install=zathura.install
source=(http://pwmt.org/projects/zathura/download/zathura-$pkgver.tar.gz)
md5sums=('1379dfb1657b323da3b521ed251bb87a')

build() {
  cd $srcdir/zathura-$pkgver
  make ZATHURA_GTK_VERSION=2
}

package() {
  cd $srcdir/zathura-$pkgver
  make install DESTDIR=$pkgdir ZATHURA_GTK_VERSION=3
  install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  mkdir -p $pkgdir/etc/bash_completion.d/
  echo "complete -f -X '!*.[pf]df' zathura" >$pkgdir/etc/bash_completion.d/zathura
}