Mail archive
alpine-aports

[alpine-aports] [PATCH 2/2] testing/aws-cli: rename testing/awscli to its real name

From: Valery Kartel <valery.kartel_at_gmail.com>
Date: Thu, 23 Mar 2017 16:55:37 +0200

---
 testing/{awscli => aws-cli}/APKBUILD | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
 rename testing/{awscli => aws-cli}/APKBUILD (85%)
diff --git a/testing/awscli/APKBUILD b/testing/aws-cli/APKBUILD
similarity index 85%
rename from testing/awscli/APKBUILD
rename to testing/aws-cli/APKBUILD
index ae572d61d7..0646dc69e3 100644
--- a/testing/awscli/APKBUILD
+++ b/testing/aws-cli/APKBUILD
_at_@ -1,20 +1,21 @@
 # Maintainer: Valery Kartel <valery.kartel_at_gmail.com>
 # Contributor: Valery Kartel <valery.kartel_at_gmail.com>
-pkgname=awscli
+pkgname=aws-cli
 pkgver=1.11.65
 pkgrel=0
-_pkgreal=aws-cli
 _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="$_pkgreal-$pkgver.tar.gz::https://github.com/aws/$_pkgreal/archive/$pkgver.tar.gz"
-builddir="$srcdir/$_pkgreal-$pkgver"
+source="$pkgname-$pkgver.tar.gz::https://github.com/aws/$pkgname/archive/$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
 
 build() {
 	cd "$builddir"
_at_@ -30,7 +31,7 @@ package() {
 
 bashcomp() {
 	depends="$pkgname-completer"
-	pkgdesc="Bash completions for $pkgname"
+	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 \
_at_@ -39,7 +40,7 @@ bashcomp() {
 
 zshcomp() {
 	depends="$pkgname-completer"
-	pkgdesc="Zsh completions for $pkgname"
+	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 \
_at_@ -59,7 +60,7 @@ completer() {
 
 doc() {
 	default_doc || return 1
-	local path=$($_python -c "import sys;print(sys.path[-1])")/$pkgname
+	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/
-- 
2.12.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Thu Mar 23 2017 - 16:55:37 UTC