updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / python-see / PKGBUILD
blobf43f08e51e978a293558dfbddb07db082e6fe516
1 # Contributor: Ricardo Martins <ricardo@scarybox.net>
3 pkgname=python-see
4 pkgver=20090218
5 pkgrel=1
6 pkgdesc="An alternative to Python's dir()"
7 arch=('i686' 'x86_64')
8 url="http://github.com/inky/see/tree/master"
9 license=('GPL3')
10 depends=('python')
11 source=()
12 md5sums=()
14 _gitroot="git://github.com/inky/see.git"
15 _gitname="see"
17 build() {
18     cd "$srcdir"
19     msg "Connecting to GIT server...."
21     if [ -d $_gitname ] ; then
22         cd $_gitname && git pull origin
23         msg "The local files are updated."
24     else
25         git clone $_gitroot
26     fi
28     msg "GIT checkout done or server timeout"
29     msg "Starting make..."
31     rm -rf "$srcdir/$_gitname-build"
32     cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33     cd "$srcdir/$_gitname-build"
35     python setup.py install --root="$pkgdir" || return 1