updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / django-categories-git / PKGBUILD
blobc26a46370d455fc0793448b3e0c4c74906f87d8b
1 # Maintainer: Laplanche Melvin <melvin.laplanche at gmail dot com>
3 pkgname=django-categories-git
4 pkgver=20110807
5 pkgrel=1
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)"
7 arch=('any')
8 url="https://github.com/callowayproject/django-categories"
9 license=('APACHE')
10 depends=('django' 'django-mptt')
11 makedepends=('git')
12 conflicts=('')
13 md5sums=()
15 _gitroot="https://github.com/callowayproject/django-categories.git"
16 _gitname="django-categories"
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   python2 setup.py build
39 package() {
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"