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

Felix Yan felixonmars at archlinux.org
Sun Jul 8 13:44:36 UTC 2018


    Date: Sunday, July 8, 2018 @ 13:44:36
  Author: felixonmars
Revision: 354902

archrelease: copy trunk to community-staging-any

Added:
  python-resumable-urlretrieve/repos/community-staging-any/
  python-resumable-urlretrieve/repos/community-staging-any/PKGBUILD
    (from rev 354901, python-resumable-urlretrieve/trunk/PKGBUILD)

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

Copied: python-resumable-urlretrieve/repos/community-staging-any/PKGBUILD (from rev 354901, python-resumable-urlretrieve/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-08 13:44:36 UTC (rev 354902)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pyname='resumable-urlretrieve'
+pkgname='python-resumable-urlretrieve'
+pkgver=0.1.5
+pkgrel=3
+pkgdesc='Small library to fetch files over HTTP and resuming their download'
+url='https://github.com/berdario/resumable-urlretrieve'
+arch=('any')
+license=('MIT')
+depends=('python' 'python-requests')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-rangehttpserver')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/berdario/resumable-urlretrieve/archive/${pkgver}.tar.gz)
+sha256sums=('32755a77dac3a8f59a3439df9eb38291f1801cdfa398befe5a15dacc637552a4')
+sha512sums=('55833a8a4725316289b62dda071b579a9e5b636a1747b1d555388ddba5c125233b46c71e726ac8d5a1fa9572ebcefab1492f24530c85f905e8e21d1339999574')
+
+build() {
+  cd ${_pyname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pyname}-${pkgver}
+  PYTHONPATH=. py.test
+}
+
+package() {
+  cd ${_pyname}-${pkgver}
+  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 README.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list