mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 17:22:07 +01:00
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py-wtforms
|
|
_pkgname=WTForms
|
|
pkgver=1.0.5
|
|
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="a7ba0af8ed65267e5b421d34940d0151 WTForms-1.0.5.zip"
|
|
sha256sums="b36b06e230403927c5e679ba84834053e9df380a0c0414bf70bca4ba1f672227 WTForms-1.0.5.zip"
|
|
sha512sums="cf6a3fe3ec28c49beb1d382a4ac0b8c1bf86949a547d216874f858b423b866b7d1bf2ceff203c201e518504a811d9d0a72515aaec014410d2c696f1d83415cfe WTForms-1.0.5.zip"
|