Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 9th, 2011  |  syntax: Bash  |  size: 1.09 KB  |  views: 37  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer : SpepS <dreamspepser at yahoo dot it>
  2. # Contributor: Thomas Conneely tc116 at le dot ac dot uk
  3.  
  4. pkgname=cocos2d
  5. pkgver=0.5.0
  6. pkgrel=1
  7. pkgdesc="A framework for building graphical/interactive applications."
  8. arch=('any')
  9. url="http://cocos2d.org/"
  10. license=('BSD' 'LGPL' 'custom')
  11. depends=('pyglet' 'python2-numpy')
  12. makedepends=('python2-distribute')
  13. source=("http://los-cocos.googlecode.com/files/$pkgname-$pkgver.zip")
  14. options=(!emptydirs)
  15. md5sums=('bf369fe1806828247fa8b46ca4a6d0ca')
  16.  
  17. build() {
  18.   cd "$srcdir/$pkgname-$pkgver"
  19.  
  20.   # python2 fixes
  21.   sed -i "s|\(env python\).*|\12|" `grep -rl "env python" .`
  22.  
  23.   python2 setup.py build
  24. }
  25.  
  26. package() {
  27.   cd "$srcdir/$pkgname-$pkgver"
  28.  
  29.   python2 setup.py install --root="$pkgdir/" --optimize=1
  30.  
  31.   # docs
  32.   install -d "$pkgdir/usr/share/doc/$pkgname"
  33.   cp -a doc/* "$pkgdir/usr/share/doc/$pkgname"
  34.  
  35.   # examples
  36.   install -d "$pkgdir/usr/share/$pkgname"
  37.   cp -a samples "$pkgdir/usr/share/$pkgname"
  38.  
  39.   # licenses
  40.   install -d "$pkgdir/usr/share/licenses/$pkgname"
  41.   cp -a LICENSE* "$pkgdir/usr/share/licenses/$pkgname"
  42. }
  43.  
  44.  
clone this paste RAW Paste Data