aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-wtforms/APKBUILD
blob: 77533adc3becbb0ef5fcbb8f4de92a9611bc4546 (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
36
37
38
39
40
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=py-wtforms
_pkgname=WTForms
pkgver=2.0.1
pkgrel=0
pkgdesc="A flexible forms validation and rendering Python library"
url="http://wtforms.simplecodes.com/"
arch="noarch"
license="BSD"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip"

_builddir="$srcdir"/$_pkgname-$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"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="aaac94c137b3cd63efeb3ded51082cde  WTForms-2.0.1.zip"
sha256sums="62859c74be4683601b5265ba83b9babd8a8f1cdd0ba31600fa1e70d295cd4ed2  WTForms-2.0.1.zip"
sha512sums="abae7adb1c7ab46abf401a536a248bf3703be2f0be9f5d8d49191f18855a6989e4c7acb232b006d5809fc13428a9e6214f734be5b917648778169c7dd258eaab  WTForms-2.0.1.zip"