aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-django-extra-views/APKBUILD
blob: 90b1fbf43ad0d05e2796f436d30cf814bced1660 (plain) (blame)
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=py3-django-extra-views
pkgver=0.12.0
pkgrel=1
pkgdesc="Extra class-based views for Django"
options="!check" # Requires unpackaged django-nose
url="https://github.com/AndrewIngram/django-extra-views"
arch="noarch"
license="MIT"
depends="py3-django py3-six"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/AndrewIngram/django-extra-views/archive/$pkgver.tar.gz"

builddir="$srcdir/django-extra-views-$pkgver"

replaces="py-django-extra-views" # Backwards compatibility
provides="py-django-extra-views=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	cd "$builddir"
	python3 setup.py build
}

check() {
	cd "$builddir"
	python3 runtests.py
}

package() {
	cd "$builddir"
	python3 setup.py install --root "$pkgdir"
}

sha512sums="ca42f99272ae4e6539a80826be07d06fa018e11a57a623d519f77fe06a9c607b5bc5486ce04b7bde1f898e359158544a52e545d1f5123863e5159e19e7df0628  py3-django-extra-views-0.12.0.tar.gz"