# Contributor: # Maintainer: Natanael Copa _pkgname=gunicorn pkgname=py-${_pkgname} pkgver=19.7.1 pkgrel=2 pkgdesc="a Python WSGI HTTP Server" url="https://github.com/benoitc/gunicorn/" arch="noarch" license="BSD" subpackages="py2-gunicorn:py2 py3-gunicorn:py3" makedepends="python2-dev python3-dev py-setuptools" source="$pkgname-$pkgver.tar.gz::https://github.com/benoitc/$_pkgname/archive/${pkgver}.tar.gz" builddir="${srcdir}/${_pkgname}-${pkgver}" build() { cd "$builddir" python2 setup.py build python3 setup.py build } _py() { local python="$1" pkgdesc="$pkgdesc ${python#python}" depends="$depends $python" install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } package() { mkdir -p "$pkgdir" } py2() { cd "$builddir" _py python2 } py3() { cd "$builddir" _py python3 } sha512sums="d06862016937f11064c0d08f2eceb262a4cdecf876f02a0c722e8ff61c439da27890dee78e20b4aeddac9db12b3e04233f16eb320e85c56b70ac2f332433cc14 py-gunicorn-19.7.1.tar.gz"