summaryrefslogtreecommitdiffstats
path: root/testing/py-flask-mitten/APKBUILD
blob: aa046a11b0f184a38929675cdc9dbcd9867463e5 (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: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-flask-mitten
_pkgname=Flask-Mitten
pkgver=0.2.1
pkgrel=0
pkgdesc="Flask security functions"
url="https://pypi.python.org/pypi/Flask-Mitten"
arch="noarch"
license="BSD"
depends="python py-flask"
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="1ac8311a863b560d441c8e423f05166f  Flask-Mitten-0.2.1.zip"
sha256sums="1fed723371796abb9c0678d1566fde643b3c180cc86ca598949566ab72c09892  Flask-Mitten-0.2.1.zip"
sha512sums="160fea3ebd2bb84e9910fbfff50148c2890ea9ca904b887ec5bb8412614f46af47c0dc473f614c37df04172e1a72fe718aafa6debbc795b76c1ab6727721ced0  Flask-Mitten-0.2.1.zip"