aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-wtforms/APKBUILD
blob: d539b6e23181c20039ec0ccb40bbcdabb28b0a7b (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.2
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="https://files.pythonhosted.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="613cf723ab40537705bec02733c78d95  WTForms-2.0.2.zip"
sha256sums="10737758ceae03b53021f3aa7e81bfc8dd6f679c879ffeb5e64ac6570facb6c1  WTForms-2.0.2.zip"
sha512sums="35d52b2991588d1aef2ed7df5713f5cdd7d64affb0879ccf6b40b9194c3b9492af8f853353df55f833bec268d4332d49cf4c8e0592c21a11cccddaddb3650c52  WTForms-2.0.2.zip"