# Maintainer: Valery Kartel # Contributor: Valery Kartel pkgname=py-boto3 _pkgname=boto3 pkgver=1.4.4 pkgrel=0 pkgdesc="AWS SDK for Python (Boto3)" url="http://aws.amazon.com/sdk-for-python/" arch="noarch" license="ASL 2.0" depends="py-botocore" makedepends="python2-dev py-setuptools python3-dev" subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" python2 setup.py build python3 setup.py build } package() { mkdir -p "$pkgdir" } _py2() { replaces="$pkgname" depends="${depends//py-/py2-}" _py python2 } _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" } tools() { pkgdesc="Command line tools to deal with Amazon Web Services" depends="$pkgname" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr } sha512sums="7b0ffdf5ff07c8497ce3a2f12c700f76aefd206e4a277fee51924cbad4175f2cd3de203a58635f297a2e97483f6fbd328f682298d62fc2168b4400fd7b0ef116 boto3-1.4.4.tar.gz"