aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-django-widget-tweaks/APKBUILD
blob: 8154d392b486118173e3c4b85b0432359a9960cc (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py3-django-widget-tweaks
pkgver=1.4.5
pkgrel=0
pkgdesc="Tweak the form field rendering in templates, not in python-level form definitions"
url="https://github.com/jazzband/django-widget-tweaks"
arch="noarch"
license="MIT"
depends="py3-django"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/jazzband/django-widget-tweaks/archive/$pkgver.tar.gz"

builddir="$srcdir/django-widget-tweaks-$pkgver"

replaces="py-django-widget-tweaks" # Backwards compatibility
provides="py-django-widget-tweaks=$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="e35c5360bfe016c470cd50b8d500d9e3f8648e1a909508c5a516ecf82d98d2808432bb2a5738ec2dd6d1e77e63e9beb454237ba44e5a4060cf812ddd43ace18e  py3-django-widget-tweaks-1.4.5.tar.gz"