aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flask-restaction/APKBUILD
blob: 7d3f5fa9d36dbfd0601728062c49bd359d63e417 (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.17.5
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="ace12f8478504ae3cbb00986b039ae47  flask-restaction-0.17.5.zip"
sha256sums="d5d8b9cf658db05dca112e7c2dc27408f3de4494e84a7778ea8e5f13286bdfbd  flask-restaction-0.17.5.zip"
sha512sums="09a5a8b40acd3c9aac257788c47b4512ebbe787f85411f913750c43f3a4b3c4988c8734319f876fe9c5de716fef1fed162ca3355c6f9ff9558549eba46fa4e80  flask-restaction-0.17.5.zip"