Commit 6043ce13 authored by Leo's avatar Leo Committed by Natanael Copa

main/py-gunicorn: add py-setuptools to depends

parent dac606d0
......@@ -3,13 +3,13 @@
_pkgname=gunicorn
pkgname=py-${_pkgname}
pkgver=19.7.1
pkgrel=2
pkgrel=3
pkgdesc="a Python WSGI HTTP Server"
url="https://github.com/benoitc/gunicorn/"
arch="noarch"
license="BSD"
license="MIT"
makedepends="py-setuptools py3-setuptools"
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}"
......@@ -21,13 +21,13 @@ build() {
}
_py() {
local python="$1"
pkgdesc="$pkgdesc ${python#python}"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
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"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
package() {
......@@ -35,12 +35,12 @@ package() {
}
py2() {
cd "$builddir"
depends="py2-setuptools"
_py python2
}
py3() {
cd "$builddir"
depends="py3-setuptools"
_py python3
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment