public
Created

PKGBUILD for euca2ools 2.1 on Arch Linux

  • Download Gist
euca2ools_pkgbuild
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
# 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
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.