From 9aa906c9db4051f6a3c133b664c35a8800fa2a31 Mon Sep 17 00:00:00 2001 From: Valery Kartel Date: Thu, 23 Mar 2017 16:55:37 +0200 Subject: testing/aws-cli: rename testing/awscli to its real name --- testing/aws-cli/APKBUILD | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ testing/awscli/APKBUILD | 68 ----------------------------------------------- 2 files changed, 69 insertions(+), 68 deletions(-) create mode 100644 testing/aws-cli/APKBUILD delete mode 100644 testing/awscli/APKBUILD diff --git a/testing/aws-cli/APKBUILD b/testing/aws-cli/APKBUILD new file mode 100644 index 0000000000..0646dc69e3 --- /dev/null +++ b/testing/aws-cli/APKBUILD @@ -0,0 +1,69 @@ +# Maintainer: Valery Kartel +# Contributor: Valery Kartel +pkgname=aws-cli +pkgver=1.11.65 +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="ASL 2.0" +options="!check" +provides=$_libname +depends="$_python groff py-botocore py-jmespath py-s3transfer py-docutils py-colorama py-yaml py-rsa" +makedepends="$_python-dev py-setuptools" +subpackages="$pkgname-doc $pkgname-zsh-completion:zshcomp $pkgname-bash-completion:bashcomp $pkgname-completer" +source="$pkgname-$pkgver.tar.gz::https://github.com/aws/$pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + $_python setup.py build +} + +package() { + cd "$builddir" + $_python setup.py install --prefix=/usr --root="$pkgdir" || return 1 + rm -fr "$pkgdir"/usr/bin/aws.cmd \ + $(find "$pkgdir" -name "*.egg-info") +} + +bashcomp() { + depends="$pkgname-completer" + pkgdesc="$pkgdesc (bash completions)" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + mkdir -p "$subpkgdir"/usr/share/bash-completion/completions || return 1 + mv "$pkgdir"/usr/bin/aws_bash_completer \ + "$subpkgdir"/usr/share/bash-completion/completions +} + +zshcomp() { + depends="$pkgname-completer" + pkgdesc="$pkgdesc (zsh completions)" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + mkdir -p "$subpkgdir"/usr/share/zsh/site-functions || return 1 + mv "$pkgdir"/usr/bin/aws_zsh_completer.sh \ + "$subpkgdir"/usr/share/zsh/site-functions +} + +completer() { + depends="" + pkgdesc="$pkgdesc (completions helper)" + cd "$pkgdir" + local file; for file in $(find . -name "*completer*"); do + echo $(dirname $file) + mkdir -p "$subpkgdir"/$(dirname $file) || return 1 + mv "$pkgdir"/$file "$subpkgdir"/$file || return 1 + done +} + +doc() { + default_doc || return 1 + local path=$($_python -c "import sys;print(sys.path[-1])")/$_libname + mkdir -p "$subpkgdir"/$path || return 1 + mv "$pkgdir"/$path/examples "$pkgdir"/$path/topics \ + "$subpkgdir"/$path/ +} + +sha512sums="9fade4709e0a6b7a8eeab390e8d260cf1712cfb20ba93834c286b946560fa28fac99fbf222d25602309738f0f2bdd7b096e89b5d181d9b784b1b28e66b7d6535 aws-cli-1.11.65.tar.gz" diff --git a/testing/awscli/APKBUILD b/testing/awscli/APKBUILD deleted file mode 100644 index ae572d61d7..0000000000 --- a/testing/awscli/APKBUILD +++ /dev/null @@ -1,68 +0,0 @@ -# Maintainer: Valery Kartel -# Contributor: Valery Kartel -pkgname=awscli -pkgver=1.11.65 -pkgrel=0 -_pkgreal=aws-cli -_python="python3" -pkgdesc="Universal Command Line Interface for Amazon Web Services" -url="https://github.com/aws/aws-cli" -arch="noarch" -license="ASL 2.0" -options="!check" -depends="$_python groff py-botocore py-jmespath py-s3transfer py-docutils py-colorama py-yaml py-rsa" -makedepends="$_python-dev py-setuptools" -subpackages="$pkgname-doc $pkgname-zsh-completion:zshcomp $pkgname-bash-completion:bashcomp $pkgname-completer" -source="$_pkgreal-$pkgver.tar.gz::https://github.com/aws/$_pkgreal/archive/$pkgver.tar.gz" -builddir="$srcdir/$_pkgreal-$pkgver" - -build() { - cd "$builddir" - $_python setup.py build -} - -package() { - cd "$builddir" - $_python setup.py install --prefix=/usr --root="$pkgdir" || return 1 - rm -fr "$pkgdir"/usr/bin/aws.cmd \ - $(find "$pkgdir" -name "*.egg-info") -} - -bashcomp() { - depends="$pkgname-completer" - pkgdesc="Bash completions for $pkgname" - install_if="$pkgname=$pkgver-r$pkgrel bash-completion" - mkdir -p "$subpkgdir"/usr/share/bash-completion/completions || return 1 - mv "$pkgdir"/usr/bin/aws_bash_completer \ - "$subpkgdir"/usr/share/bash-completion/completions -} - -zshcomp() { - depends="$pkgname-completer" - pkgdesc="Zsh completions for $pkgname" - install_if="$pkgname=$pkgver-r$pkgrel zsh" - mkdir -p "$subpkgdir"/usr/share/zsh/site-functions || return 1 - mv "$pkgdir"/usr/bin/aws_zsh_completer.sh \ - "$subpkgdir"/usr/share/zsh/site-functions -} - -completer() { - depends="" - pkgdesc="$pkgdesc (completions helper)" - cd "$pkgdir" - local file; for file in $(find . -name "*completer*"); do - echo $(dirname $file) - mkdir -p "$subpkgdir"/$(dirname $file) || return 1 - mv "$pkgdir"/$file "$subpkgdir"/$file || return 1 - done -} - -doc() { - default_doc || return 1 - local path=$($_python -c "import sys;print(sys.path[-1])")/$pkgname - mkdir -p "$subpkgdir"/$path || return 1 - mv "$pkgdir"/$path/examples "$pkgdir"/$path/topics \ - "$subpkgdir"/$path/ -} - -sha512sums="9fade4709e0a6b7a8eeab390e8d260cf1712cfb20ba93834c286b946560fa28fac99fbf222d25602309738f0f2bdd7b096e89b5d181d9b784b1b28e66b7d6535 aws-cli-1.11.65.tar.gz" -- cgit v1.2.3