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

Felix Yan felixonmars at archlinux.org
Tue Nov 10 04:11:44 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:11:43
  Author: felixonmars
Revision: 748547

archrelease: copy trunk to community-staging-any

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

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

Copied: python-rangehttpserver/repos/community-staging-any/PKGBUILD (from rev 748546, python-rangehttpserver/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:11:43 UTC (rev 748547)
@@ -0,0 +1,34 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pkgname=RangeHTTPServer
+pkgname=python-rangehttpserver
+pkgver=1.2.0
+pkgrel=5
+pkgdesc='SimpleHTTPServer with support for Range requests'
+url='https://github.com/danvk/RangeHTTPServer/'
+arch=('any')
+license=('Apache')
+depends=('python')
+makedepends=('python' 'python-setuptools')
+checkdepends=('python-nose' 'python-requests')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/danvk/RangeHTTPServer//archive/${pkgver}.tar.gz)
+sha256sums=('17aad58bec8ccd95f9d5bc9cff2bf3597d002eff08e1ced558c8756b61467a94')
+sha512sums=('5964687bb3e8524ab3eea0b71eaefe189f795ce73ba438510936480bbdfda3dcfafe97ace66b35b3b235864f71744fe20c8fb90f881628ad67a53162e22b59bb')
+
+build() {
+  (cd ${_pkgname}-${pkgver}
+    python setup.py build
+  )
+}
+
+check() {
+  (cd ${_pkgname}-${pkgver}
+    nosetests
+  )
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list