summaryrefslogtreecommitdiff
path: root/community/zathura/PKGBUILD
blob: 5e36f3c184fd8b87e421509e0cadb6feae8bd8da (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
# $Id: PKGBUILD 60106 2011-12-05 11:21:55Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: ML <neldoreth>

pkgname=zathura
pkgver=0.0.8.5
pkgrel=4
pkgdesc="a PDF viewer"
arch=('i686' 'x86_64' 'mips64el')
url="http://pwmt.org/projects/zathura/"
license=('custom')
depends=('poppler-glib' 'gtk2' 'cairo')
makedepends=('docutils')
install=zathura.install
DLAGENTS=('http::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
          'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u')
source=(https://pwmt.org/download/zathura-$pkgver.tar.gz)
md5sums=('52e0c3b3917c7feaecba98cff8435b90')

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

package() {
  cd $srcdir/zathura-$pkgver
  make install DESTDIR=$pkgdir
  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
}