aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-django-widget-tweaks/APKBUILD
blob: 028703b0d7a085f62489243d39faf3c135a02822 (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.3
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="85a131a19572df37e42bfb991fe127b292afea92bf324af8d00eab39fa08ccfc0a6f3a345d438d7de99efd49a35b43ec3cba3611e8726478b16712b28c37d22c  django-widget-tweaks-1.4.3.tar.gz"