Date: Friday, March 16, 2018 @ 05:16:23 Author: svenstaro Revision: 308753
upgpkg: python-botocore 1.9.7-2 Add python2 package Modified: python-botocore/trunk/PKGBUILD ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-03-16 05:01:26 UTC (rev 308752) +++ PKGBUILD 2018-03-16 05:16:23 UTC (rev 308753) @@ -3,28 +3,49 @@ # Contributor: Ainola # Contributor: Chris Fordham -pkgname=python-botocore +pkgbase=python-botocore +pkgname=('python-botocore' 'python2-botocore') pkgver=1.9.7 -pkgrel=1 +pkgrel=2 pkgdesc='A low-level interface to a growing number of Amazon Web Services' arch=('any') url="https://github.com/boto/botocore" license=('Apache') -depends=('python-dateutil' 'python-jmespath' 'python-docutils') -makedepends=('python-setuptools') +makedepends=('python-setuptools' 'python2-setuptools') source=($pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz) md5sums=('d3c687dfabed11413c02669b63ff58b9') -build() { - cd botocore-$pkgver +prepare() { + cp -r "botocore-$pkgver" "python-botocore-$pkgver" + cp -r "botocore-$pkgver" "python2-botocore-$pkgver" +} +build_python-botocore() { + cd "python-botocore-$pkgver" + python setup.py build } -package() { - cd botocore-$pkgver +build_python2-botocore() { + cd "python2-botocore-$pkgver" + python2 setup.py build +} + +package_python-botocore() { + depends=('python-dateutil' 'python-jmespath' 'python-docutils') + + cd "python-botocore-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} +package_python2-botocore() { + depends=('python-dateutil' 'python-jmespath' 'python-docutils') + + cd "python2-botocore-$pkgver" + + python2 setup.py install --root="$pkgdir" --optimize=1 install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }