aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-gunicorn/APKBUILD
blob: 579c2fca30f5d141305d540d013665bd5c379ca4 (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
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_pkgname=gunicorn
pkgname=py-${_pkgname}
pkgver=19.4.5
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="fcc5dacdcebfeba10d6989696b5c4155  py-gunicorn-19.4.5.tar.gz"
sha256sums="b00921adb5c7d786b2b22416a03d0e4586209d754c1dde302c10981bcbf09fe0  py-gunicorn-19.4.5.tar.gz"
sha512sums="06b47ded3bcbf918ee7635b43ad68e53c5a8f73d9270b219424405e37a7e395aadcd0182ad28a82151f02c9f99bf670508084d40fabafb8fead9c5a4b8913805  py-gunicorn-19.4.5.tar.gz"