aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flask-restaction/APKBUILD
blob: 723f723ef8c4849729e3a9c270a6ebe80296eb21 (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-restaction
_pkgname=flask-restaction
pkgver=0.20.0
pkgrel=0
pkgdesc="Flask RESTful API extension"
url="https://pypi.python.org/pypi/flask-restaction"
arch="noarch"
license="MIT"
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="a778a2c792dfacc5925be83d807cf3e2  flask-restaction-0.20.0.zip"
sha256sums="b57327114ac4c1c7c07ead3bb9078b4b4290345ef845c95b81d094e3cbbc9b36  flask-restaction-0.20.0.zip"
sha512sums="a71c2a11febce40101914f11f59ebd327dbfc9768db4600f74544ef40d6cb2f3f1254c4be8159a12768c2af3dbda593f57f5d6239447932a72297ab0ff6f37f4  flask-restaction-0.20.0.zip"