diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2016-12-30 02:16:40 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-02-08 13:37:54 +0200 |
commit | b253e1fe9c7bb4b5f6fc211340420edf8056d35a (patch) | |
tree | 8a179c125d3581dd17a916078cfd8c9c3c707806 /testing | |
parent | f080e5b48e95cd19e811c7fc84dd965dd8c000aa (diff) | |
download | aports-b253e1fe9c7bb4b5f6fc211340420edf8056d35a.tar.bz2 aports-b253e1fe9c7bb4b5f6fc211340420edf8056d35a.tar.xz |
testing/py-s3transfer: upgrade to 0.1.10
build for both python2, python3
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-s3transfer/APKBUILD | 46 |
1 files changed, 31 insertions, 15 deletions
diff --git a/testing/py-s3transfer/APKBUILD b/testing/py-s3transfer/APKBUILD index cd07edfd7f..c2560fd63b 100644 --- a/testing/py-s3transfer/APKBUILD +++ b/testing/py-s3transfer/APKBUILD @@ -1,32 +1,48 @@ # Maintainer: Valery Kartel <valery.kartel@gmail.com> # Contributor: Valery Kartel <valery.kartel@gmail.com> pkgname=py-s3transfer -_pkgname=s3transfer -pkgver=0.0.1 +_pkgname=${pkgname#py-} +pkgver=0.1.10 pkgrel=0 pkgdesc="Amazon S3 Transfer Manager for Python" url="https://github.com/boto/s3transfer" arch="noarch" license="apache2" -depends="python2" -depends_dev= -makedepends="python2-dev py-setuptools" -install= -subpackages= +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" source="$_pkgname-$pkgver.tar.gz::https://github.com/boto/$_pkgname/archive/$pkgver.tar.gz" - -_builddir="$srcdir"/$_pkgname-$pkgver +builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" python2 setup.py build || return 1 + python3 setup.py build || return 1 } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + mkdir -p "$pkgdir" +} + +_py2() { + replaces="$pkgname" + depends="${depends//py-/py2-}" + _py python2 } -md5sums="d7e50c1f8fa21801334562e93246c26e s3transfer-0.0.1.tar.gz" -sha256sums="41f31e669e0e260a903d77f59ae20cd6b47e9117956093328c91f3eff20f683b s3transfer-0.0.1.tar.gz" -sha512sums="bee66e58f58ff9c774966131bfca3c9bd86baeb4ea6d757281c526690695195e4b0770745b09912bd93a41eac83c0299f93a2174ebfaf441740951a68b9ffc61 s3transfer-0.0.1.tar.gz" +_py3() { + depends="${depends//py-/py3-}" + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} +md5sums="25d8d4d134d9b820b58e139803330e8a s3transfer-0.1.10.tar.gz" +sha256sums="9d5083fdefc22bd9a4e1c5bc84682f43db308403a034dbe8898850c030a428e8 s3transfer-0.1.10.tar.gz" +sha512sums="9d8b2ef688e90809c8edff42e3ea9a9c5d4a4f908cbcd7d90ab9630eb4a5cdd3326b9a4f3f9b4534e494d9accc9a236c43a5fa627048d6f79a2d3d7650e64e37 s3transfer-0.1.10.tar.gz" |