updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / zathura-ypb / PKGBUILD
bloba4734a19d4d6e1fa7bd9e359032f905be32430fb
1 # Maintainer: Michal Kowalski <kowalski TOD michal TA gmail TOD com>
3 _name=zat
4 pkgname=zathura-ypb
5 pkgver=20110215
6 pkgrel=1
7 pkgdesc="a PDF viewer"
8 arch=('i686' 'x86_64')
9 url="https://github.com/ypb/zat"
10 license=('custom')
11 groups=('ypb' 'aur-ypb')
12 depends=('poppler-glib>=0.12.3' 'gtk2>=2.18.6' 'cairo>=1.8.8')
13 makedepends=('git')
15 #conflicts=('zathura')
16 #replaces=('zathura')
17 # TODO add .installl file handling bin link?
18 provides=('bin/zathura')
19 # looks like providing 'zathura' conflictz with zathura-git in spite of
20 # not being called zathura ourselves... silly?
22 _gitroot='git://github.com/ypb/zat.git'
23 _gitname='zathura.ypb'
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [ -d $_gitname ] ; then
30     cd $_gitname && git pull origin
31     msg "The local files are updated."
32   else
33     git clone $_gitroot $_gitname
34   fi
36   msg "GIT checkout done or server timeout"
37   msg "Starting make..."
39   rm -rf "$srcdir/$_gitname-build"
40   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41   cd "$srcdir/$_gitname-build"
43 # just in case...
44   git checkout ypb
45   make
48 package() {
49   cd "$srcdir/$_gitname-build"
51   make DESTDIR="$pkgdir/" install
52   install -D -m664 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"