aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-gunicorn/APKBUILD
blob: 5b3a848fe61051e048a81a9c84434f96469385b1 (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.4.1
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="14281f5ffd91f5dc384d566dc07e58a0  py-gunicorn-19.4.1.tar.gz"
sha256sums="81899db60828fdd0377f1e6618859459af0cd151b70baf90ca3c76cabaf3cfe1  py-gunicorn-19.4.1.tar.gz"
sha512sums="e0424db7d306613454f7337169e94bccd30ab2ec73810a6c04571fd6fad3b541b88543313c7e90507c635cd02c8695b0135e16f33cc2f9ca8004a2c973e17686  py-gunicorn-19.4.1.tar.gz"