[arch-commits] Commit in python-resumable-urlretrieve/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 4 10:54:56 UTC 2019
Date: Monday, November 4, 2019 @ 10:54:55
Author: felixonmars
Revision: 524035
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 524034, python-resumable-urlretrieve/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-resumable-urlretrieve/repos/community-staging-any/PKGBUILD (from rev 524034, python-resumable-urlretrieve/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-11-04 10:54:55 UTC (rev 524035)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pyname='resumable-urlretrieve'
+pkgname='python-resumable-urlretrieve'
+pkgver=0.1.6
+pkgrel=2
+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=('a7c390b826e8bd76611a39b6f0e8af73c55871767c674fcd8373a25b2bcdd1c2')
+sha512sums=('2bff31f0635754e1a6a703ad2fc619a7b047b5f4cc32a9c5d613d570cdec349a9d026238f971509c7a0086593a88b0cdfd1e90c85ad2f54935cd3883fd785d18')
+
+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