Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

coco2d PKGBUILD

By: a guest on Mar 30th, 2011  |  syntax: Bash  |  size: 0.77 KB  |  views: 82  |  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. # Contributor: Thomas Conneely tc116 at le dot ac dot uk
  2.  
  3. pkgname=cocos2d
  4. pkgver=0.4.0
  5. pkgrel=2
  6. pkgdesc="cocos2d is a framework for building graphical/interactive applications."
  7. arch=('any')
  8. url="http://cocos2d.org/"
  9. license=('BSD')
  10. depends=('python2' 'pyglet')
  11. makedepends=('setuptools' 'unzip')
  12. source=("http://los-cocos.googlecode.com/files/$pkgname-$pkgver.zip")
  13. options=(!emptydirs)
  14. md5sums=('5e57ef534b093342dc7bc35cb634b785')
  15.  
  16. build() {
  17.         cd $srcdir/$pkgname-$pkgver
  18.    
  19.                 # python2 fix
  20.                 for file in $(find . -name '*.py' -print); do
  21.                         sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
  22.                 done
  23.  
  24.                 python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1
  25. }