Advertisement
Guest User

PKGBUILD

a guest
Mar 24th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.81 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement