1 #Contributor: karnath <karnathtorjian@gmail.com>
2 pkgname=zathura-girara-git
5 pkgdesc="Vim like document viewer"
7 url="https://pwmt.org/projects/zathura/"
9 depends=('girara-gtk2-git')
11 optdepends=('zathura-pdf-poppler: PDF support by using poppler'
12 'zathura-pdf-mupdf: PDF support by using mupdf'
13 'zathura-djvu: djvu support by using djvulibre'
14 'zathura-ps: PostSctipt support by using libspectre'
17 install=zathura.install
18 conflicts=('zathura' 'zathura-git' 'zathura-girara-git')
19 provides=('zathura' 'zathura-git' 'zathura-girara-git')
21 _gitroot="git://pwmt.org/zathura.git"
26 msg "Connecting to GIT server..."
28 if [ -d ${srcdir}/$_gitname ]; then
29 cd $_gitname && git pull origin
30 msg "The local files are updated."
33 cd $_gitname && git checkout --track -b develop origin/develop
36 msg "GIT checkout done or server timeout"
37 msg "Starting make..."
39 if [ -d ${srcdir}/$_gitname-build ]; then
40 rm -rf ${srcdir}/$_gitname-build
43 git clone ${srcdir}/$_gitname ${srcdir}/$_gitname-build || return 1
44 cd ${srcdir}/$_gitname-build/ || return 1
46 make DESTDIR="$pkgdir" install || return 1
47 install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"