aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-22 19:40:13 -0300
committerFrancesco Colista <fcolista@alpinelinux.org>2019-05-27 15:26:38 +0000
commit67a092075b8d623da92cb38d2d3db8cb69c16d95 (patch)
tree1105be36e317b9e1e9cea01affa57b7697d97aba
parent2405caf1192f494bb8d2ed886d765654026131fc (diff)
downloadaports-67a092075b8d623da92cb38d2d3db8cb69c16d95.tar.gz
aports-67a092075b8d623da92cb38d2d3db8cb69c16d95.tar.bz2
aports-67a092075b8d623da92cb38d2d3db8cb69c16d95.tar.xz
main/py-django-registration: modernize
-rw-r--r--main/py-django-registration/APKBUILD26
1 files changed, 6 insertions, 20 deletions
diff --git a/main/py-django-registration/APKBUILD b/main/py-django-registration/APKBUILD
index d92f0a5853..71f7854bcf 100644
--- a/main/py-django-registration/APKBUILD
+++ b/main/py-django-registration/APKBUILD
@@ -3,37 +3,23 @@
_pkgname=django-registration
pkgname=py-${_pkgname}
pkgver=1.0
-pkgrel=1
+pkgrel=2
pkgdesc="simple user-registration application for Django"
url="https://github.com/ubernostrum/django-registration"
arch="noarch"
-license="BSD"
-makedepends="python2-dev py-setuptools"
+license="BSD-3-Clause"
+makedepends="py-setuptools"
depends="python2"
source="${_pkgname}-${pkgver}.tar.gz::https://github.com/ubernostrum/django-registration/archive/${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
-}
+builddir="${srcdir}/${_pkgname}-${pkgver}"
build() {
- cd "${_builddir}"
- python2 setup.py build || return 1
+ python2 setup.py build
}
package() {
- cd "${_builddir}"
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
}
-md5sums="86bb7ec89597e36ab58a613b2a7b4288 django-registration-1.0.tar.gz"
-sha256sums="0b28f9c95558b4c80bd9f89e4dd2c8769a625a838b7ed8fb26c4fa78f955e6bc django-registration-1.0.tar.gz"
sha512sums="d47863a4fd0d5b68d2fe8419c85d7dda631ddb3afbeb32dbc530ec7f3e1a78bd795485cc295376e54d3da5e87b92b987b45ca4c11cc75a83cec537a77fe84e8f django-registration-1.0.tar.gz"