updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / pyanidb-git / PKGBUILD
blob42d09a76d1438e189f3ce0bc6fa04b8a32c3a6dc
1 # Contributor: Jon Bergli Heier <snakebite@jvnv.net>
2 pkgname=pyanidb-git
3 pkgver=20101021
4 pkgrel=1
5 pkgdesc="PyAniDB is a client for AniDB's UDP API."
6 arch=('any')
7 url="http://redmine.jvnv.net/projects/pyanidb/wiki"
8 license=('GPL')
9 depends=('python')
10 optdepends=('pyxattr')
11 makedepends=('git')
12 conflicts=('pyanidb')
14 _gitroot="git://git.jvnv.net/pyanidb"
15 _gitname="pyanidb"
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   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   python setup.py install --root=${pkgdir} || return 1
36