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

Untitled

By: a guest on Mar 2nd, 2013  |  syntax: None  |  size: 1.03 KB  |  views: 38  |  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=pyalienfx
  2. realname=pyAlienFX
  3. pkgver=v1.0.2
  4. pkgrel=2
  5. pkgdesc="Multiplataform software to control Alienware LED's written in Python2"
  6. arch=('any')
  7. url="http://code.google.com/p/pyalienfx/"
  8. license="GPLv3"
  9. depends=(python2 pygtk gksu)
  10.  
  11. source=("http://pyalienfx.googlecode.com/files/$realname-$pkgver.tar.gz"
  12. "libusb-1.0.so.0"::"https://pyalienfx.googlecode.com/issues/attachment?aid=80024000&name=libusb-1.0.so.0&token=Lzn_8zk-_SQoGPZBw5gKxqPw53M%3A1362241153720")
  13. md5sums=('33b2abb3ad56ec5618a1f68698c49a43' '05e36bd689b406367ce32263d3fc624b')
  14.  
  15. build() {
  16.   tar -xf $realname-$pkgver.tar.gz
  17.   mkdir -p $pkgdir/opt/
  18.   mkdir -p $pkgdir/usr/
  19.   mkdir -p $pkgdir/usr/bin
  20. }
  21.  
  22. package() {
  23.  # Copy necesary files
  24.  cd ${srcdir}
  25.  cp pyalienfx -R $pkgdir/opt/pyAlienFX
  26.  cp libusb-1.0.so.0 $pkgdir/opt/pyAlienFX/
  27.  
  28.  # Generate the bin command
  29.  cd ${pkgdir}/usr/bin
  30.  echo -ne "#!/bin/bash\ncd /opt/pyAlienFX\ngksu LD_PRELOAD=/opt/pyAlienFX/libusb-1.0.so.0 python2 /opt/pyAlienFX/pyAlienFX.py" > pyalienfx
  31.  chmod a+x pyalienfx
  32. }