Skip to content

Instantly share code, notes, and snippets.

@joshdmiller
Created February 20, 2014 19:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshdmiller/9121400 to your computer and use it in GitHub Desktop.
Save joshdmiller/9121400 to your computer and use it in GitHub Desktop.
Arch Linux PKGBUILD for AWS Elastic Beanstalk Command Line Tool
# Contributor: Douglas Creager (dcreager AT dcreager DOT NET)
# Contributor: Josh David Miller (josh AT joshdavidmiller DOT COM)
pkgname=aws-eb
pkgver=2.6.0
pkgrel=1
pkgdesc="The API and CLI tools that provide access to Amazon Elastic Beanstalk"
arch=( 'any' )
url="http://aws.amazon.com/code/6752709412171743"
source=( https://s3.amazonaws.com/elasticbeanstalk/cli/AWS-ElasticBeanstalk-CLI-2.6.0.zip )
depends=( 'python' )
license=( 'APACHE' )
md5sums=( '05945e7f8d7844ceccae91c45b463384' )
build() {
# Fix the location of the dev tools
sed -i 's/LinuxClimbUpDepth\s=.*$/LinuxClimbUpDepth = 0/g' \
$srcdir/AWS-ElasticBeanstalk-CLI-$pkgver/eb/linux/python3/scli/constants.py
sed -i 's/LinuxRepoScript\s=.*$/LinuxRepoScript = \x27AWSDevTools\/AWSDevTools-RepositorySetup.sh\x27/g' \
$srcdir/AWS-ElasticBeanstalk-CLI-$pkgver/eb/linux/python3/scli/constants.py
# Install the files into /opt since they depend on a non-standard directory
# structure.
mkdir -p $pkgdir/opt
cp -r $srcdir/AWS-ElasticBeanstalk-CLI-$pkgver/eb/linux/python3 $pkgdir/opt/aws-eb
cp -r $srcdir/AWS-ElasticBeanstalk-CLI-$pkgver/AWSDevTools/Linux $pkgdir/opt/aws-eb/AWSDevTools
# Link the CLI program into /usr/bin
mkdir -p $pkgdir/usr/bin
ln -s ../../opt/aws-eb/eb $pkgdir/usr/bin
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment