summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChris Severance2016-02-10 14:12:49 -0500
committerChris Severance2016-02-10 14:12:49 -0500
commit461dae4f4a564d5b83f4e3ec7f6c189ef3e07d2c (patch)
treeb74e9494134678a004448b999837e2502def96ef /PKGBUILD
downloadaur-461dae4f4a564d5b83f4e3ec7f6c189ef3e07d2c.tar.gz
First version 0.0.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..41afc09206f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Chris Severance aur.severach AatT spamgourmet.com
+
+set -u
+_pyver="python2"
+_pybase='s3transfer'
+pkgname="${_pyver}-${_pybase}"
+pkgver='0.0.1'
+pkgrel='1'
+pkgdesc='Amazon S3 Transfer Manager for Python for aws'
+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
+)
+depends=("${_pyver}" "${_pydepends[@]}")
+makedepends=("${_pyver}" "${_pyver}-distribute") # same as python-setuptools
+_srcdir="${_pybase}-${pkgver}"
+#_verwatch=("${url}/releases" "${url#*github.com}/archive/\(.*\)\.tar\.gz" 'l')
+source=("${_pybase}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('41f31e669e0e260a903d77f59ae20cd6b47e9117956093328c91f3eff20f683b')
+
+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
+}
+
+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
+}
+set +u
+
+# vim:set ts=2 sw=2 et: