updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / as-cmd-tools / PKGBUILD
blob480ef416ed0e665f508129299fdb69993e88ad47
1 # Contributor: Truong Xuan Tinh (xuantinh at gmail dot com)
3 pkgname=as-cmd-tools
4 pkgver=1.0.39.0
5 pkgrel=1
6 pkgdesc="The Command Line Tool serves as the client interface to the Auto Scaling web service"
7 arch=('any')
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)
11 license=('custom')
12 md5sums=('493a43448e09b80d701383cf4c388a82')
13 install=$pkgname.install
14 _installDir=/opt/as-cmd-tools
15 build() {
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 {} \;
22         # and install scripts
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