updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / aws-iam / PKGBUILD
blob7f3dc84a5758f30f0b0abb15392d7a4da8be9291
1 # Maintainer: Louis R. Marascio <lrm@fitnr.com>
3 pkgname=aws-iam
4 _pkgdirname=IAMCli
5 pkgver=1.2.0
6 pkgrel=1
7 pkgdesc="AWS Identity and Access Management (IAM) command line tools"
8 arch=('any')
9 url="http://aws.amazon.com/iam/"
10 license=('custom')
11 depends=('java-runtime' 'sh')
12 install='aws-iam.install'
13 source=(http://awsiammedia.s3.amazonaws.com/public/tools/cli/latest/IAMCli.zip)
14 md5sums=('24454ac0bc1db5196add524ac4cdcb3d')
16 build() {
17   cd "$srcdir/$_pkgdirname-$pkgver"
18   rm -f bin/*.cmd
19   sed -i "s,\#\!/bin/sh,\#\!/bin/sh\n\nAWS_IAM_HOME=/usr," bin/*
20   mkdir -p "$pkgdir/usr"
21   mkdir -p "$pkgdir/usr/share/licenses/$pkgname/"
22   mkdir -p "$pkgdir/usr/share/doc/$pkgname/"
25 package() {
26   cd "$srcdir/$_pkgdirname-$pkgver"
27   cp -r lib "$pkgdir/usr"
28   cp -r bin "$pkgdir/usr"
29   install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/"
30   install -Dm0644 README.txt  "$pkgdir/usr/share/doc/$pkgname/"
31   install -Dm0644 aws-credential.template "$pkgdir/usr/share/doc/$pkgname/"
32   install -Dm0644 client-config.template "$pkgdir/usr/share/doc/$pkgname/"
35 # vim:set ts=2 sw=2 et: