Guest User

Untitled

a guest
Mar 26th, 2014
111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributors: henning mueller <henning@orgizm.net>
  2. #   Andrew Hamilton
  3. #   Tom T.<tomtryf@gmail.com>
  4.  
  5. pkgname=euca2ools
  6. pkgver=3.0.2
  7. pkgrel=1
  8. pkgdesc="Command-line tools for interacting with Amazon EC2 and S3 API-compatible Web services using the REST/Query API."
  9. arch=('any')
  10. url=http://www.eucalyptus.com/
  11. license=('BSD')
  12. depends=('python2' 'python2-six' 'python2-lxml' 'python2-progressbar' 'python2-requestbuilder' 'python2-requests' 'rsync')
  13. makedepends=('python2-setuptools')
  14. source=("http://downloads.eucalyptus.com/software/euca2ools/3.0/source/$pkgname-$pkgver.tar.gz"
  15. "http://downloads.eucalyptus.com/software/euca2ools/3.0/source/$pkgname-$pkgver.tar.gz.asc")
  16. md5sums=('073fbe1b7637d6a39d126b6679b40df3'
  17.          'SKIP')
  18.  
  19. build() {
  20.     cd "$srcdir/$pkgname-$pkgver"
  21.     python2 setup.py build
  22. }
  23.  
  24. package() {
  25.     cd "$srcdir/$pkgname-$pkgver"
  26.     python2 setup.py install --root="${pkgdir}" --optimize=1
  27.  
  28.     mkdir -p "${pkgdir}/etc/euca2ools"
  29.     cp -p conf/euca2ools.ini "${pkgdir}"/etc/euca2ools
  30.     mkdir -p "${pkgdir}/usr/share/euca2ools/certs"
  31.     cp -p certs/* "${pkgdir}"/usr/share/euca2ools/certs
  32.  
  33.     # Change shebang lines for python2.
  34.     find . -type f | xargs sed -i "s:/python:/python2:"
  35. }
RAW Paste Data