[arch-commits] Commit in python-rangehttpserver/repos (2 files)

Levente Polyak anthraxx at archlinux.org
Thu Sep 21 13:04:07 UTC 2017


    Date: Thursday, September 21, 2017 @ 13:04:06
  Author: anthraxx
Revision: 259155

archrelease: copy trunk to community-any

Added:
  python-rangehttpserver/repos/community-any/
  python-rangehttpserver/repos/community-any/PKGBUILD
    (from rev 259154, python-rangehttpserver/trunk/PKGBUILD)

----------+
 PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

Copied: python-rangehttpserver/repos/community-any/PKGBUILD (from rev 259154, python-rangehttpserver/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-09-21 13:04:06 UTC (rev 259155)
@@ -0,0 +1,54 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pkgname=RangeHTTPServer
+pkgbase=python-rangehttpserver
+pkgname=(python-rangehttpserver python2-rangehttpserver)
+pkgver=1.2.0
+pkgrel=1
+pkgdesc='SimpleHTTPServer with support for Range requests'
+url='https://github.com/danvk/RangeHTTPServer/'
+arch=('any')
+license=('Apache')
+makedepends=('python' 'python-setuptools'
+             'python2' 'python2-setuptools')
+checkdepends=('python-nose' 'python-requests'
+              'python2-nose' 'python2-requests')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/danvk/RangeHTTPServer//archive/${pkgver}.tar.gz)
+sha256sums=('17aad58bec8ccd95f9d5bc9cff2bf3597d002eff08e1ced558c8756b61467a94')
+sha512sums=('5964687bb3e8524ab3eea0b71eaefe189f795ce73ba438510936480bbdfda3dcfafe97ace66b35b3b235864f71744fe20c8fb90f881628ad67a53162e22b59bb')
+
+prepare() {
+  cp -a ${_pkgname}-${pkgver}{,-py2}
+}
+
+build() {
+  (cd ${_pkgname}-${pkgver}
+    python setup.py build
+  )
+  (cd ${_pkgname}-${pkgver}-py2
+    python2 setup.py build
+  )
+}
+
+check() {
+  (cd ${_pkgname}-${pkgver}
+    nosetests
+  )
+  (cd ${_pkgname}-${pkgver}-py2
+    nosetests2
+  )
+}
+
+package_python-rangehttpserver() {
+  depends=('python')
+  cd ${_pkgname}-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+
+package_python2-rangehttpserver() {
+  depends=('python2')
+  cd ${_pkgname}-${pkgver}-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list