updated on Sat Jan 21 12:00:39 UTC 2012
[aur-mirror.git] / gaphas-git / PKGBUILD
blobada2c297ec32b68544badc102a1725754f1c6b25
1 # Contributor: Giedrius Slavinskas <giedrius25@gmail.com>
3 pkgname=gaphas-git
4 pkgver=20091020
5 pkgrel=1
6 pkgdesc="A GTK+ based diagramming widget written in Python"
7 arch=('i686' 'x86_64')
8 url="http://wiki.github.com/amolenaar/gaphas"
9 license=('LGPL')
10 depends=('pygtk' 'python-decorator>=3.0.0')
11 makedepends=('setuptools>=0.6c5' 'python-nose>=0.10.4')
12 conflicts=('gaphas')
13 replaces=('gaphas')
14 provides=('gaphas' 'gaphas-git')
15 source=()
16 md5sums=()
18 _gitroot="git://github.com/amolenaar/gaphas.git"
19 _gitname="gaphas"
21 build() {
22     msg "Connecting to github.com GIT server...."
24     if [ -d $startdir/src/$_gitname ] ; then
25         cd $_gitname && git pull origin
26         msg "The local files are updated."
27     else
28         git clone $_gitroot
29     fi
31     msg "GIT checkout done or server timeout"
32     msg "Starting make..."
34     cd $startdir/src
36     cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
37     cd $startdir/src/$_gitname-build
38     
39     python setup.py install --root=${pkgdir} --prefix=/usr || return 1