Commit 00fb07e3 authored by Leo's avatar Leo
Browse files

community/aws-cli: explicitly depend on py3-setuptools and simplify

parent 9ae2cb0e
......@@ -3,28 +3,31 @@
pkgname=aws-cli
pkgver=1.17.10
pkgrel=0
_python="python3"
_libname=${pkgname/-/}
pkgdesc="Universal Command Line Interface for Amazon Web Services"
url="https://github.com/aws/aws-cli"
arch="noarch"
license="Apache-2.0"
provides=$_libname
depends="$_python groff py3-botocore py3-jmespath py3-s3transfer py3-docutils py3-colorama py3-yaml py3-rsa"
makedepends="$_python-dev py-setuptools"
subpackages="$pkgname-doc $pkgname-zsh-completion:zshcomp $pkgname-bash-completion:bashcomp $pkgname-completer"
depends="python3 groff py3-botocore py3-jmespath py3-s3transfer py3-docutils
py3-colorama py3-yaml py3-rsa"
makedepends="python3-dev py3-setuptools"
subpackages="
$pkgname-doc
$pkgname-zsh-completion:zshcomp
$pkgname-bash-completion:bashcomp
$pkgname-completer
"
source="aws-cli-$pkgver.tar.gz::https://github.com/aws/aws-cli/archive/$pkgver.tar.gz"
build() {
$_python setup.py build
python3 setup.py build
}
check() {
$_python setup.py check
python3 setup.py check
}
package() {
$_python setup.py install --prefix=/usr --root="$pkgdir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
rm -fr "$pkgdir"/usr/bin/aws.cmd \
$(find "$pkgdir" -name "*.egg-info")
}
......@@ -60,7 +63,7 @@ completer() {
doc() {
default_doc
local path=$($_python -c "import sys;print(sys.path[-1])")/$_libname
local path=$(python3 -c "import sys;print(sys.path[-1])")/awscli
mkdir -p "$subpkgdir"/$path
mv "$pkgdir"/$path/examples "$pkgdir"/$path/topics \
"$subpkgdir"/$path/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment