updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / django-feincms-git / PKGBUILD
blobfce70f87e62e487cdba04b7ac231c7729bf62229
1 # Maintainer: Vladimir Gorbunov <truedaemon@gmail.com>
2 # Contributor: Gour <gour@gour-nitai.com>
3 pkgname=django-feincms-git  
4 pkgver=20101218
5 pkgrel=1 
6 pkgdesc="Django-based Page CMS and CMS building toolkit"
7 arch=('any')
8 url="http://github.com/matthiask/feincms/tree/master"
9 license=('BSD')
10 depends=('python2' 'django' 'django-tagging-svn' 'django-mptt-git')
11 makedepends=('git')
12 conflicts=('django-feincms')
13 provides=('django-feincms')
14 source=()
15 md5sums=()
17 _gitroot="git://github.com/matthiask/feincms.git"
18 _gitname="feincms"
20 build() {
21     cd "$srcdir"
22     msg "Connecting to GIT server...."
24     if [ -d $_gitname ] ; then
25         cd $_gitname && git pull origin
26         msg "The local files are updated."
27     else
28         git clone $_gitroot $_gitname
29     fi
31     msg "GIT checkout done or server timeout"
32     msg "Starting make..."
34     rm -rf "$srcdir/$_gitname-build"
35     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39 package () {
40     cd "$srcdir/$_gitname-build"
41     python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1
42     install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"