summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c667294f03f0c460c7345f92c8bd67868c5fca3f (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
# Maintainer: Lubosz Sarnecki <lubosz@gmail.com>
# Contributor: Jonathan Liu <net147@gmail.com>

name=django-profiles
pkgname=$name-hg
pkgver=0.2.25.c21962558420
pkgrel=1
pkgdesc="A simple, generic user-profile application for Django"
arch=('any')
url="http://bitbucket.org/ubernostrum/django-profiles/wiki/Home"
license=('BSD')
depends=('python-django')
makedepends=('python-distribute')
provides=($name)
conflicts=($name)
source=("hg+https://bitbucket.org/ubernostrum/django-profiles")
md5sums=("SKIP")

pkgver() {
	cd $name
	vers=$(grep "version=" setup.py | sed "s/      version='//g" | sed "s/',//g")
  echo $vers.$(hg identify -n).$(hg identify -i)
}

build() { 
	cd $name
  python setup.py build
}

package() {
	cd $name
  python setup.py install --root="$pkgdir" -O1
  install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: