aboutsummaryrefslogtreecommitdiffstats
path: root/testing/awscli/APKBUILD
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2016-03-14 16:48:03 +0200
committerTimo Teräs <timo.teras@iki.fi>2016-03-18 09:26:47 +0000
commit494848832232841a985fb61d6b621d17cdc0b255 (patch)
tree9a88e8a5c589b6bb598aad2d69829db342089be5 /testing/awscli/APKBUILD
parentf88dde6a2dd78821b1b90944de82e8eb9942363d (diff)
downloadaports-494848832232841a985fb61d6b621d17cdc0b255.tar.bz2
aports-494848832232841a985fb61d6b621d17cdc0b255.tar.xz
testing/awscli: new aport
Universal Command Line Interface for Amazon Web Services https://github.com/aws/aws-cli
Diffstat (limited to 'testing/awscli/APKBUILD')
-rw-r--r--testing/awscli/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/awscli/APKBUILD b/testing/awscli/APKBUILD
new file mode 100644
index 0000000000..7bdaaef56b
--- /dev/null
+++ b/testing/awscli/APKBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+pkgname=awscli
+_pkgname=aws-cli
+pkgver=1.10.12
+pkgrel=0
+pkgdesc="Universal Command Line Interface for Amazon Web Services"
+url="https://github.com/aws/aws-cli"
+arch="noarch"
+license="apache2"
+depends="python py-botocore py-jmespath py-s3transfer"
+depends_dev=
+makedepends="python-dev py-setuptools"
+install=
+subpackages="$pkgname-zsh-completion:zshcomp $pkgname-bash-completion:bashcomp"
+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 || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ rm "$pkgdir"/usr/bin/aws.cmd
+}
+
+bashcomp() {
+ depends=
+ pkgdesc="Bash completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+ mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
+ mv "$pkgdir"/usr/bin/aws_bash_completer \
+ "$subpkgdir"/usr/share/bash-completion/completions/
+}
+
+zshcomp() {
+ depends=
+ pkgdesc="Zsh completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel zsh"
+ mkdir -p "$subpkgdir"/usr/share/zsh/site-functions
+ mv "$pkgdir"/usr/bin/aws_zsh_completer.sh \
+ "$subpkgdir"/usr/share/zsh/site-functions/
+}
+
+md5sums="d78effb794f6efee51a6ff465e2ec987 aws-cli-1.10.12.tar.gz"
+sha256sums="b1eaab59898b366f9fc72c18a741945bb1adf9275e05f940c83f99b3548021cc aws-cli-1.10.12.tar.gz"
+sha512sums="ae3f60eeba56b1ae1bb2c9315478daadd2ddcb86594aeec5da0a231c5acfcff3524d628d5865ed41cab7e3457a567450ede95314336c5b87dc95fb00b76fdb2f aws-cli-1.10.12.tar.gz"