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

PKGBUILD

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