# $Id: PKGBUILD 43267 2011-03-24 12:25:34Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: ML <neldoreth>

pkgname=zathura
pkgver=0.0.8.3
pkgrel=1
pkgdesc="a PDF viewer"
arch=('i686' 'x86_64')
url="http://zathura.pwmt.org"
license=('custom')
depends=('poppler-glib' 'gtk2' 'cairo')
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
	zathura.desktop
	zathura-poppler-0.16.patch)
md5sums=('95b1d02593e7055f08da3825ad54954d'
         '53da4968621934e7d9812380a3a37ee1'
         'fa9f43b1a785743b4f9b840d1f234bae')

build() {
  cd $srcdir/zathura-$pkgver
#  patch -Np1 -i $srcdir/zathura-poppler-0.16.patch
  make
  install -D -m775 zathura "$pkgdir/usr/bin/zathura"
  install -D -m664 zathura.1 "$pkgdir/usr/share/man/man1/zathura.1"
  install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -D -m664 $srcdir/zathura.desktop "$pkgdir/usr/share/applications/zathura.desktop"
}