summaryrefslogtreecommitdiff
path: root/pcr/django-extensions/PKGBUILD
blob: 535091cfce77f18dde96b61bcc77b5b495d54594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Alper Kanat <alperkanat@raptiye.org>
# Contributor: Schnouki <thomas.jost@gmail.com>
# Maintainer : Parabola GNU / Linux-libre <aurelien@cwb.io>

pkgname=django-extensions
pkgver=0.6
pkgrel=1
pkgdesc="Django Custom Management Command Extensions"
arch=('any')
url="http://github.com/django-extensions/django-extensions"
license=('BSD')
depends=('django' 'python2')
makedepends=('setuptools' 'git')
optdepends=('graphviz: to graph Django models'
            'python-werkzeug: to use the Werbzeug debugger in the embedded web server')
source=()

_giturl=http://github.com/$pkgname/$pkgname.git

build() {
    cd $srcdir

    if [[ ! -d $srcdir/$pkgname ]]; then
        # downloading the whole repository
        git clone $_giturl
    else
        # updating the local repository
        cd $srcdir/$pkgname
        git pull
    fi

    cd $srcdir/$pkgname

    # checking out to the tag (version)
    git checkout -b $pkgver $pkgver

    python2 ./setup.py install --root=$pkgdir --prefix=/usr || return 1
}