aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-gunicorn/APKBUILD
blob: 9b973cfda5d55bcd25f719e1923f7169eccd7728 (plain) (blame)
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
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_pkgname=gunicorn
pkgname=py-${_pkgname}
pkgver=19.3
pkgrel=0
pkgdesc="a Python WSGI HTTP Server"
url="https://github.com/benoitc/gunicorn/"
arch="noarch"
license="BSD"
makedepends="python-dev py-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/benoitc/$_pkgname/archive/${pkgver}.tar.gz"

_builddir="${srcdir}/${_pkgname}-${pkgver}"

prepare() {
	local pf
	cd "${_builddir}"
	for pf in $source; do
		case $pf in
		*.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || 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="7c038b3a3a841cccd02bc2e185862286  py-gunicorn-19.3.tar.gz"
sha256sums="06279932c743286f6420e32638c8c581db688d31aa75fcb719ed63bc2a36d7f0  py-gunicorn-19.3.tar.gz"
sha512sums="f4ce9e933a4b041109b2dc9f23a29e4ea8fc6026f15684dea2f113f1878f1ad5e1aa509489ee06672a9ad031e1a26ca1c4797d8adcdeedb4af9e49451791f033  py-gunicorn-19.3.tar.gz"