Skip to content

Instantly share code, notes, and snippets.

@ahamilton55
Created July 11, 2012 05:46
Show Gist options
  • Save ahamilton55/3088212 to your computer and use it in GitHub Desktop.
Save ahamilton55/3088212 to your computer and use it in GitHub Desktop.
PKGBUILD for euca2ools 2.1 on Arch Linux
# Contributors:
# henning mueller <[email protected]>
# Andrew Hamilton <[email protected]>
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