aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-gunicorn/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2014-10-31 11:50:35 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2014-10-31 11:50:35 +0100
commitbd40d543bcea6700c99518d1dda8e9c82e3449bf (patch)
tree68691b8f8eb470855c1655b7792599a815db5b4d /main/py-gunicorn/APKBUILD
parentc3e2c12d30f48a88fbc9b4aa98a0861ebb06d052 (diff)
downloadaports-bd40d543bcea6700c99518d1dda8e9c82e3449bf.tar.bz2
aports-bd40d543bcea6700c99518d1dda8e9c82e3449bf.tar.xz
testing/seafile: move seafile and deps to main
Diffstat (limited to 'main/py-gunicorn/APKBUILD')
-rw-r--r--main/py-gunicorn/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/main/py-gunicorn/APKBUILD b/main/py-gunicorn/APKBUILD
new file mode 100644
index 0000000000..c0b47692f1
--- /dev/null
+++ b/main/py-gunicorn/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: <xmingske@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_pkgname=gunicorn
+pkgname=py-${_pkgname}
+pkgver=19.1.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="d6d80c5991428b06e3826c8ca695e417 py-gunicorn-19.1.1.tar.gz"
+sha256sums="c2e131808f9afaa3dc273c039d4f49d08b6f614a15004cabb0f0f40f27f06598 py-gunicorn-19.1.1.tar.gz"
+sha512sums="f36a4d89efffaa0be04488bad84ede52af8f32a953772af17ca227279c12e8ad095a13a762f645a74187f5d86eef61c4d22fe632d9da244da5d237b0c0e32705 py-gunicorn-19.1.1.tar.gz"