aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-waitress/APKBUILD
blob: 2737b787a5d75cb2271d7faa88d730751f1b8f2e (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-waitress
_pkgname=waitress
pkgver=0.8.9
pkgrel=0
pkgdesc="A Python WSGI server"
url="https://github.com/Pylons/waitress"
arch="noarch"
license="ZPL 2.1"
depends="python"
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="da3f2e62b3676be5dd630703a68e2a04  waitress-0.8.9.tar.gz"
sha256sums="826527dc9d334ed4ed76cdae672fdcbbccf614186657db71679ab58df869458a  waitress-0.8.9.tar.gz"
sha512sums="e9459b8806389fcdbd6f7cfc4fc908c2076f1fcc306315c5375c872c1a0c43c2537347322f7becf1ad36aec0050dca7b2f713f35318fe3a371e544cc880b7d8c  waitress-0.8.9.tar.gz"