aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-django-extra-views/APKBUILD
blob: 5ccb041493c7f49ad9739b2ee1c80fdb95a6a95f (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py-django-extra-views
pkgver=0.11.0
pkgrel=0
pkgdesc="Extra class-based views for Django"
url=https://github.com/AndrewIngram/django-extra-views
arch=noarch
license=MIT
depends="py-django py-six"
makedepends=py-setuptools
source="https://files.pythonhosted.org/packages/source/d/django-extra-views/django-extra-views-$pkgver.tar.gz"

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

build() {
	cd "$_builddir"
	python2 setup.py build
}

package() {
	cd "$_builddir"
	python2 setup.py install --root "$pkgdir"
}

sha512sums="5d5722d0fc5192c8ddc60bce9cf2c864a85d07097c5695a572838ca9fcadbe523a5148fae92302346598593aee5bdf21f189726b333acc2d46b020f0e7dee2ed  django-extra-views-0.11.0.tar.gz"