blob: 0ff3a6ffb9c978734d9dc81c70052cb75bc42b09 (
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
39
40
41
42
43
44
45
46
|
# Maintainer: Jeremy "Ichimonji10" Audet <ichimonji10 at gmail dot com>
# Contributor: pumpkin <pumpkin at mailoo dot org>
# Contributor: Vsevolod Balashov <vsevolod at balashov dot name>
pkgbase=gunicorn
pkgname=(gunicorn gunicorn-python2)
pkgver=19.7.1
pkgrel=1
pkgdesc='WSGI HTTP Server for UNIX'
arch=(any)
url='http://gunicorn.org/'
license=(MIT)
makedepends=(python-distribute python2-distribute)
source=("https://github.com/benoitc/${pkgbase}/archive/${pkgver}.tar.gz")
sha256sums=('768a548eac4bb3a0eb5c897a0ac674cbe03628c1130233d3299df98a4bd7ec49')
package_gunicorn() {
depends=(python)
optdepends=(
'python-eventlet: For asynchronous request handling with eventlet.'
'python-gevent: For asynchronous request handling with gevent.'
)
cd "${srcdir}/${pkgbase}-${pkgver}"
python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1
rm -r "${pkgdir}/usr/bin/gunicorn_paster"
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_gunicorn-python2() {
depends=(python2)
provides=(python2-gunicorn)
conflicts=(python2-gunicorn)
optdepends=(
'python2-eventlet: For asynchronous request handling with eventlet.'
'python2-gevent: For asynchronous request handling with gevent.'
)
cd "${srcdir}/${pkgbase}-${pkgver}"
python2 setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1
rm -r "${pkgdir}/usr/bin/gunicorn_paster"
mv "${pkgdir}/usr/bin/gunicorn" "${pkgdir}/usr/bin/gunicorn-python2"
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
|