diff options
author | Lubosz Sarnecki | 2015-06-22 22:55:18 +0200 |
---|---|---|
committer | Lubosz Sarnecki | 2015-06-22 22:55:18 +0200 |
commit | 8a67f55730a3e42f14ba3bc705d4b544e910ff76 (patch) | |
tree | b515f80ad14317a3b155c219c32fc07b030ce656 /PKGBUILD | |
download | aur-8a67f55730a3e42f14ba3bc705d4b544e910ff76.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0d68d1b61f4b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Contributor: Chaiwat Suttipongsakul <cwt at bashell dot com> +# Maintainer: Laszlo Papp <djszapi at archlinux us> + +pkgname=django-registration-hg +pkgver=20101010 +pkgrel=1 +pkgdesc="A user-registration application for Django." +arch=(any) +url="http://bitbucket.org/ubernostrum/django-registration/wiki/Home" +license=('GPL') +depends=('python' 'django') +conflicts=('django-registration') +provides=('django-registration') +source=() +md5sums=() + +_hgbranch=http://bitbucket.org/ubernostrum/django-registration/ +_hgrepo=django-registration + +build() { + cd ${srcdir} + + if [ -d ${_hgrepo} ]; then + (cd ${_hgrepo} && hg pull -u) || return 1 + else + hg clone ${_hgbranch} || return 1 + fi + + msg "Mercurial clone done or server timeout" + + cd ${_hgrepo} + + python2 setup.py build || return 1 + python2 setup.py install --root=$pkgdir --optimize=1 || return 1 +} |