Skip to content

Instantly share code, notes, and snippets.

Created January 8, 2014 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8324698 to your computer and use it in GitHub Desktop.
Save anonymous/8324698 to your computer and use it in GitHub Desktop.
lighttable 0.6 pkgbuild just hacked together not really tested too well
# Contributor: Jonathan Ryan <jryan@curious-computing.com>
# Maintainer: Tony Sokhon <tonyskn@gmail.com>
# Contributor: Ebubekir KARUL <ebubekirkarul@yandex.com>
# Contributor: Gaurish Sharma <contact@gaurishsharma.com>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Katrina L. Halliwell <rambaldi.kat.47@gmail.com>
pkgname=lighttable
pkgver=0.6.0
pkgrel=2
pkgdesc="New interactive IDE that lets you modify running programs and embed anything from websites to games."
url="http://www.lighttable.com/"
license=('GPL3')
depends=(nss libx11 libxrandr libpng gconf)
options=(!strip)
arch=('i686' 'x86_64')
source=(lighttable http://d35ac8ww5dfjyg.cloudfront.net/playground/bins/$pkgver/LightTableLinux.tar.gz lighttable.desktop lighttable.png)
md5sums=('e772b3547fdc3a6e32f81e7303422fd1'
'6565f599b7760f0f7dd2d186d9cc6d17'
'a454708d725223d577c2d67d08300717'
'f8c055be2f047ff4aaffdd028f62f027')
if [[ "$CARCH" == "x86_64" ]]; then
source[1]=http://d35ac8ww5dfjyg.cloudfront.net/playground/bins/$pkgver/LightTableLinux64.tar.gz
md5sums[1]='12da99c02687c136c6281e8adcdfbed2'
fi
package() {
install -D -m755 lighttable "$pkgdir/usr/bin/lighttable"
_destdir="$pkgdir/opt/LightTable"
install -dm755 $_destdir
#rm "$srcdir/LightTable/debug.log"
mv $srcdir/LightTable/* $_destdir
mkdir -p "${pkgdir}"/usr/share/{applications,pixmaps}
install -m644 "${startdir}"/lighttable.desktop "${pkgdir}/usr/share/applications/"
install -m644 "${startdir}"/lighttable.png "${pkgdir}"/usr/share/pixmaps/lighttable.png
#for more info, https://github.com/Kodowa/Light-Table-Playground/issues/161
ln -s /usr/lib/libudev.so "$_destdir/libudev.so.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment