aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flask-headers/APKBUILD
blob: 5149029c2bb69d1d16bf7315026ae1db37b53ac2 (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-headers
_pkgname=Flask-Headers
pkgver=1.0
pkgrel=0
pkgdesc="Flask headers extension"
url="https://pypi.python.org/pypi/Flask-Headers"
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.tar.gz"

_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="23b9900d896f8de205fa43f91e86a7b0  Flask-Headers-1.0.tar.gz"
sha256sums="195d2acf0caf595ade2c38fe613d4d8c30521074888f83c9580dfff6bbef8fc9  Flask-Headers-1.0.tar.gz"
sha512sums="aae3088745970575464dc93bb0198a461ac218f4b9d2396a9ff7b950610f191453341f6d434ba7636d44f54a6d8fd0b3e000dba36c272d80c3d85242e029a48b  Flask-Headers-1.0.tar.gz"