aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-django-widget-tweaks/APKBUILD
blob: f880602f010e5ccc09b70c8aef60c2460fe859f3 (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-widget-tweaks
pkgver=1.4.2
pkgrel=0
pkgdesc="Tweak the form field rendering in templates, not in python-level form definitions"
url=https://github.com/kmike/django-widget-tweaks
arch=noarch
license=MIT
depends=py-django
makedepends=py-setuptools
source="https://files.pythonhosted.org/packages/source/d/django-widget-tweaks/django-widget-tweaks-$pkgver.tar.gz"

_builddir=$srcdir/django-widget-tweaks-$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"
	./setup.py build
}

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

sha512sums="1ea165edcd4174cea335dbcda96cb3b18234f70822a2913fb986e7aa469724c60f54f975a8ee687ca2e16b3efa50da1e9a8245b2d0d593c21cf26c19f879307b  django-widget-tweaks-1.4.2.tar.gz"