1 # Contributor: Truong Xuan Tinh (xuantinh at gmail dot com)
6 pkgdesc="The Command Line Tool serves as the client interface to the Auto Scaling web service"
8 url="http://aws.amazon.com/developertools/2535"
9 source=(http://ec2-downloads.s3.amazonaws.com/AutoScaling-2011-01-01.zip)
10 depends=(java-runtime)
12 md5sums=('493a43448e09b80d701383cf4c388a82')
13 install=$pkgname.install
14 _installDir=/opt/as-cmd-tools
16 cd $srcdir/AutoScaling-$pkgver
17 mkdir -p $pkgdir$_installDir
18 # install lib i.e jar file
19 cp -r lib $pkgdir$_installDir
20 find $pkgdir -type f -exec chmod 644 {} \;
23 cp -r bin $pkgdir$_installDir
24 # Remove unneeded windows cmd files
25 rm $pkgdir$_installDir/bin/*.cmd
27 # install license files
28 mkdir -p $pkgdir/usr/share/licenses/$pkgname/
29 install -m 644 license.txt $pkgdir/usr/share/licenses/$pkgname/
30 install -m 644 THIRDPARTYLICENSE.TXT $pkgdir/usr/share/licenses/$pkgname/
31 install -m 600 credential-file-path.template $pkgdir/opt/$pkgname/credential-file