This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

kivy 1.7.2 PKGBUILD

By: a guest on Sep 22nd, 2013  |  syntax: Bash  |  size: 1.10 KB  |  views: 104  |  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. pkgname=kivy
  2. pkgver=1.7.2
  3. pkgrel=1
  4. pkgdesc="A python module for developing multi-touch enabled media rich applications."
  5. arch=('i686' 'x86_64')
  6. url="http://kivy.org/"
  7. license=('LGPL')
  8. depends=('python2-pygame' 'python2-opengl' 'python2-imaging'
  9.          'gstreamer0.10-python' 'cython2' 'libgl')
  10. makedepends=('mesa')
  11. optdepends=('twisted: networking framework integration'
  12.             'python2-pygments: syntax highligh'
  13.             'python2-docutils: reStructuredText renderer'
  14.             'python2-requests: garden utility'
  15.             'python2-pyjnius: access Java class as Python class')
  16. source=("http://pypi.python.org/packages/source/K/Kivy/Kivy-$pkgver.tar.gz")
  17. md5sums=('0cb63ee604aa669b7333dcb84f1765c3')
  18.  
  19. build() {
  20.   cd "$srcdir/Kivy-$pkgver"
  21.   python2 setup.py build
  22. }
  23.  
  24. package() {
  25.   cd "$srcdir/Kivy-$pkgver"
  26.   python2 setup.py install --root="$pkgdir"
  27.  
  28.   # rename the garden utility to prevent
  29.   # conflicts with the garder game
  30.   mv "$pkgdir/usr/bin/garden" "$pkgdir/usr/bin/kivy-garden"
  31.  
  32.   # python2 fixes
  33.   sed -i "s/\#\!.*python$/&2/" \
  34.     `grep -rl "\#\!.*python$" "$pkgdir"`
  35. }
clone this paste RAW Paste Data