summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Scarpino2020-01-03 12:10:34 +0100
committerAndrea Scarpino2020-01-03 12:12:20 +0100
commitb10645f02d88e79c451e92ab2cbe335b62ce934d (patch)
tree2b63ebff856080775bba487b4aa52bafa3d0773b
parent4da4d0061208cea84dd639df4116818656418af1 (diff)
downloadaur-python2-s3transfer.tar.gz
Restore from Arch Linux packages
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD62
2 files changed, 25 insertions, 57 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 77aece7fbf2..7280d8f7132 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,14 @@
-# Generated by mksrcinfo v8
-# Tue Mar 6 05:20:02 UTC 2018
pkgbase = python2-s3transfer
- pkgdesc = Amazon S3 Transfer Manager for Python for aws
- pkgver = 0.1.13
- pkgrel = 1
+ pkgdesc = Amazon S3 Transfer Manager for Python
+ pkgver = 0.2.1
+ pkgrel = 4
url = https://github.com/boto/s3transfer
arch = any
license = Apache
- makedepends = python2
- makedepends = python2-distribute
- depends = python2
- depends = python2-botocore>=1.3.0
- depends = python2-botocore<2.0.0
- depends = python2-futures
- source = s3transfer-0.1.13.tar.gz::https://github.com/boto/s3transfer/archive/0.1.13.tar.gz
- sha256sums = dfe11258a356005c3ab78fda77a6978cef5d4156609f5efc0bfe3f83f24fb06a
+ makedepends = python2-setuptools
+ depends = python2-botocore
+ source = python2-s3transfer-0.2.1.tar.gz::https://github.com/boto/s3transfer/archive/0.2.1.tar.gz
+ md5sums = 6514cc8cbb38d0adf97fa94b58e42d7e
pkgname = python2-s3transfer
diff --git a/PKGBUILD b/PKGBUILD
index ca774f6072d..ef4e0b1aa75 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,52 +1,26 @@
-# $Id$
-# Maintainer: Chris Severance aur.severach AatT spamgourmet.com
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Jonathan Steel <jsteel at archlinux.org>
+# Contributor: Chris Severance aur.severach AatT spamgourmet.com
-set -u
-_pyver="python2"
-_pybase='s3transfer'
-pkgname="${_pyver}-${_pybase}"
-pkgver='0.1.13'
-pkgrel='1'
-pkgdesc='Amazon S3 Transfer Manager for Python for aws'
+pkgname=python2-s3transfer
+pkgver=0.2.1
+pkgrel=4
+pkgdesc='Amazon S3 Transfer Manager for Python'
arch=('any')
-url="https://github.com/boto/${_pybase}"
-license=('Apache') # Apache License 2.0
-_pydepends=( # See setup.py, README.rst, and requirements.txt for version dependencies
- "${_pyver}-botocore"{'>=1.3.0','<2.0.0'} # AUR
-)
-if [ "${_pyver}" = 'python2' ]; then
- _pydepends+=('python2-futures')
-fi
-depends=("${_pyver}" "${_pydepends[@]}")
-makedepends=("${_pyver}" "${_pyver}-distribute") # same as python-setuptools
-_srcdir="${_pybase}-${pkgver}"
-#_verwatch=("${url}/releases.atom" '\s\+<title>\([^<]\+\)</title>.*' 'f') # RSS
-source=("${_pybase}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
-sha256sums=('dfe11258a356005c3ab78fda77a6978cef5d4156609f5efc0bfe3f83f24fb06a')
+url="https://github.com/boto/s3transfer"
+license=('Apache')
+depends=('python2-botocore')
+makedepends=('python2-setuptools')
+source=($pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
+md5sums=('6514cc8cbb38d0adf97fa94b58e42d7e')
build() {
- set -u
- cd "${_srcdir}"
- ${_pyver} setup.py build
- set +u
-}
-
-check() {
- set -u
- cd "${_srcdir}"
- # If pip is installed, some package tests download missing packages. We can't allow that.
- #${_pyver} setup.py test --verbose
- set +u
+ cd s3transfer-$pkgver
+ python2 setup.py build
}
package() {
- set -u
- #depends=("${_pyver}") # "${_pydepends[@]}")
- cd "${_srcdir}"
- ${_pyver} setup.py install --root="${pkgdir}" --optimize=1
- #install -Dpm644 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- set +u
+ cd s3transfer-$pkgver
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-set +u
-
-# vim:set ts=2 sw=2 et: