Skip to content

@ahamilton55 /euca2ools_pkgbuild
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PKGBUILD for euca2ools 2.1 on Arch Linux
# Contributors:
# henning mueller <henning@orgizm.net>
# Andrew Hamilton <andrew.hamilton@eucalyptus.com>
pkgname=euca2ools
pkgver=2.1.0
pkgrel=1
pkgdesc='Command-line tools for interacting with Amazon EC2 and S3 API-compatible Web services using the REST/Query API.'
arch=(any)
url=http://www.eucalyptus.com/
license=(BSD)
depends=(python2 python-boto python-m2crypto)
makedepends=(python2 help2man python-boto python-m2crypto)
source=(
http://downloads.eucalyptus.com/software/euca2ools/2.1/source/$pkgname-$pkgver.tar.gz
)
md5sums=(
83fa841afc2a223ef082aac7aa6bc609
)
package() {
# Create needed directories in $pkgdir.
cd $pkgdir
mkdir -p \
usr/lib/python2.7/site-packages/$pkgname \
usr/bin \
etc/bash_completion.d \
usr/share/man/man1
cd $srcdir/$pkgname-$pkgver
# Change shebang lines for python2.
find . -type f | xargs sed -i "s:/python:/python2:"
# Copy python module over to python module dir.
cp -R $pkgname/* \
$pkgdir/usr/lib/python2.7/site-packages/$pkgname
# Copy binaries.
cp -R bin/* \
$pkgdir/usr/bin
# Copy bash completion script.
cp -R util/* \
$pkgdir/etc/bash_completion.d
# Generate and copy man pages.
make man
cp -R man/* \
$pkgdir/usr/share/man/man1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.