# Contributor: Antoine Martin (antoine AT openance DOT com) # Contributor: Yejun Yang (yejunx AT gmail DOT com) # Contributor: Oleg Smirnov (oleg.smirnov@gmail.com) # Contributor: Nikolay Bryskin (devel.niks@gmail.com) # Contributor: Hebitchov (vincent.doba@gmail.com) # Maintainer: Ernie Brodeur (ebrodeur@ujami.net) pkgname=ec2-ami-tools pkgver=1.4.0.9 pkgrel=1 pkgdesc="The Amazon EC2 AMI Tools are command-line utilities to help manage machine instances for Amazon S3." arch=('any') url="http://developer.amazonwebservices.com/" # this is idiotic, completely and I blame amazon. You can nolonger download # per version of these files. Sooo for now, till I learn a better method # we will grab the .zip and use the md5 sum failure to make sure this is upto #date source=(http://ec2-downloads.s3.amazonaws.com/$pkgname.zip) depends=(ruby rsync) license=('custom') build() { if [ -e $pkgname.zip ];then rm -rf $pkgname.zip fi # I know, lets prevent people from downloading our # $pkgname-$pkgver-$_pkgbuild.zip file directly, # but then when they uncompress it lets label it! # Shames on amazon! cd $srcdir/$pkgname-$pkgver mkdir -p $pkgdir/usr cp -r lib $pkgdir/usr cp -r etc $pkgdir find $pkgdir -type f | xargs chmod 644 sed -i 's#^home=.*$#home=/usr#' bin/* sed -i 's#^ruby #ruby-1.8 #' bin/* cp -r bin $pkgdir/usr mkdir -p $pkgdir/usr/share/licenses/$pkgname/ install -m 644 license.txt $pkgdir/usr/share/licenses/$pkgname/ } #= md5sums=('949c945b47abc2056d620940f9fa9f66')