updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / zathura-girara-git / PKGBUILD
blobf69bb0059e6d804ee588950471fb271a5e47b87f
1 #Contributor: karnath <karnathtorjian@gmail.com>
2 pkgname=zathura-girara-git
3 pkgver=20111211
4 pkgrel=2
5 pkgdesc="Vim like document viewer"
6 arch=('i686' 'x86_64')
7 url="https://pwmt.org/projects/zathura/"
8 license=('custom')
9 depends=('girara-gtk2-git')
10 makedepends=('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'
16 makedepends=('git')
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"
22 _gitname="zathura"
24 build(){
25   cd ${srcdir}
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."
31   else
32     git clone $_gitroot
33     cd $_gitname && git checkout --track -b develop origin/develop
34   fi
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
41   fi
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"