1 # Maintainer: Laplanche Melvin <melvin.laplanche at gmail dot com>
3 pkgname=django-categories-git
6 pkgdesc="This app attempts to provide a generic category system that multiple apps could use. It uses MPTT for the tree storage and provides a custom admin for better visualization (copied and modified from feinCMS)"
8 url="https://github.com/callowayproject/django-categories"
10 depends=('django' 'django-mptt')
15 _gitroot="https://github.com/callowayproject/django-categories.git"
16 _gitname="django-categories"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
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 python2 setup.py build
40 cd "$srcdir/$_gitname-build"
42 python2 setup.py install --prefix=/usr --root="$pkgdir"
43 install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${_gitname}/COPYING"