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

Lighttable-0.5 PKGBUILD

By: utopicchaotica on Aug 23rd, 2013  |  syntax: None  |  size: 1.60 KB  |  views: 78  |  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: Ebubekir KARUL <ebubekirkarul@yandex.com>
  2. # Contributor: Gaurish Sharma <contact@gaurishsharma.com>
  3. # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
  4. # Contributor: Tony Sokhon <tonyskn@gmail.com>
  5.  
  6. pkgname=lighttable
  7. pkgver=0.5.0
  8. pkgrel=2
  9. pkgdesc="New interactive IDE that lets you modify running programs and embed anything from websites to games."
  10. url="http://www.lighttable.com/"
  11. license=('custom')
  12. depends=(nss libx11 libxrandr libpng gconf)
  13. options=(!strip)
  14. arch=('i686' 'x86_64')
  15.  
  16. source=(lighttable https://d35ac8ww5dfjyg.cloudfront.net/playground/bins/0.5.0/LightTableLinux.tar.gz lighttable.desktop lighttable.png)
  17. md5sums=('5c3110a62216b2edd6b50b3b2cb0b4fa'
  18.          'b617a4c1305585efff9e14c1739976f7'
  19.          'a454708d725223d577c2d67d08300717'
  20.          'f8c055be2f047ff4aaffdd028f62f027')
  21.  
  22. if [[ "$CARCH" == "x86_64" ]]; then
  23.   source[1]=http://d35ac8ww5dfjyg.cloudfront.net/playground/bins/0.5.0/LightTableLinux64.tar.gz
  24.   md5sums[1]='8f3b5facb3108e85df2e5105015dcb31'
  25. fi
  26.  
  27. package() {
  28.   install -D -m755 lighttable "$pkgdir/usr/bin/lighttable"
  29.  
  30.   _destdir="$pkgdir/opt/LightTable"
  31.  
  32.   install -dm755 $_destdir
  33.   rm "$srcdir/LightTable/debug.log"
  34.   mv $srcdir/LightTable/* $_destdir
  35.  
  36.   mkdir -p "${pkgdir}"/usr/share/{applications,pixmaps}
  37.   install -m644 "${startdir}"/lighttable.desktop "${pkgdir}/usr/share/applications/"
  38.   install -m644 "${startdir}"/lighttable.png "${pkgdir}"/usr/share/pixmaps/lighttable.png
  39.  
  40.  
  41.  
  42.   #for more info, https://github.com/Kodowa/Light-Table-Playground/issues/161
  43.   ln -s /usr/lib/libudev.so "$_destdir/libudev.so.0"
  44. }