1 # Maintainer: Vladimir Gorbunov <truedaemon@gmail.com>
2 # Contributor: Gour <gour@gour-nitai.com>
3 pkgname=django-feincms-git
6 pkgdesc="Django-based Page CMS and CMS building toolkit"
8 url="http://github.com/matthiask/feincms/tree/master"
10 depends=('python2' 'django' 'django-tagging-svn' 'django-mptt-git')
12 conflicts=('django-feincms')
13 provides=('django-feincms')
17 _gitroot="git://github.com/matthiask/feincms.git"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
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"
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"