updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / django-mptt-git / PKGBUILD
blobcc2306095d4477be87cb3f5acda9015101ca3074
1 # Contributor: Apkawa <apkawa@gmail.com>
2 pkgname=django-mptt-git
3 pkgver=20101024
4 pkgrel=1
5 pkgdesc="Utilities for implementing Modified Preorder Tree Traversal"
6 arch=('any')
7 url="http://code.google.com/p/django-mptt/"
8 license=('BSD')
9 depends=('python2' 'django')
10 makedepends=('git')
11 provides=('django-mptt')
12 conflicts=('django-mptt')
13 replaces=('django-mptt')
15 _gitroot="http://github.com/django-mptt/django-mptt.git"
16 _gitname="django-mptt"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   #
37   # BUILD HERE
38   #
39     python2 setup.py build || return 1
40     python2 setup.py install --root=$pkgdir || return 1
41     install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
44