summaryrefslogtreecommitdiffstats
path: root/main/py-django-registation/APKBUILD
blob: 99d3ae86fab197c32cecf5125ffae71d942ab1b6 (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: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_pkgname=django-registration
pkgname=py-${_pkgname}
pkgver=1.0
pkgrel=0
pkgdesc="simple user-registration application for Django"
url="https://bitbucket.org/ubernostrum/django-registration/wiki/Home"
arch="noarch"
license="BSD"
makedepends="python-dev py-setuptools"
depends="python"
source="https://bitbucket.org/ubernostrum/django-registration/downloads/${_pkgname}-${pkgver}.tar.gz"

_builddir="${srcdir}/${_pkgname}-${pkgver}"

prepare() {
	local pf
	cd "${_builddir}"
	for pf in $source; do
		case $pf in
		*.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;;
		esac
	done
}

build() {
	cd "${_builddir}"
	python setup.py build || return 1
}

package() {
	cd "${_builddir}"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="56a7e705dcef054ee44d51f1ef7b1db0  django-registration-1.0.tar.gz"
sha256sums="f19112fa1c1f34eb46427afa280398d9f044a604d68d6d0d15047243e0a71d93  django-registration-1.0.tar.gz"
sha512sums="53b191e4c75629d3ce93e4817a843bc1b056a14558be892aa95dc060b8b0542ddcae79f7cb0b37c4e758e8d9da093e59a57591294539acfed39b998b7087e0e6  django-registration-1.0.tar.gz"