Permalink
Browse files

Fix lighttable's "Unknown architecture" bug

  • Loading branch information...
1 parent 1f59f22 commit 17554b526f521dca149c0468a0dca6cd86fb9341 @tonyskn committed Oct 7, 2013
Showing with 18 additions and 5 deletions.
  1. +4 −4 lighttable/PKGBUILD
  2. +14 −1 lighttable/lighttable
View
@@ -1,12 +1,12 @@
-# Maintainer: Ebubekir KARUL <ebubekirkarul@yandex.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: Tony Sokhon <tonyskn@gmail.com>
# Contributor: Katrina L. Halliwell <rambaldi.kat.47@gmail.com>
pkgname=lighttable
pkgver=0.5.4
-pkgrel=1
+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=('custom')
@@ -15,7 +15,7 @@ options=(!strip)
arch=('i686' 'x86_64')
source=(lighttable http://d35ac8ww5dfjyg.cloudfront.net/playground/bins/$pkgver/LightTableLinux.tar.gz lighttable.desktop lighttable.png)
-md5sums=('5c3110a62216b2edd6b50b3b2cb0b4fa'
+md5sums=('e772b3547fdc3a6e32f81e7303422fd1'
'65288ea5ca9defce6c3b19d3e04c44cc'
'a454708d725223d577c2d67d08300717'
'f8c055be2f047ff4aaffdd028f62f027')
View
@@ -1,2 +1,15 @@
#!/bin/sh
-LD_LIBRARY_PATH="/opt/LightTable:$LD_LIBRARY_PATH" /opt/LightTable/LightTable
+BIN=ltbin
+LT_HOME=/opt/LightTable
+
+ARGS="$@"
+CORRECTED=${ARGS//-/<d>}
+CORRECTED=${CORRECTED// /<s>}
+
+if [ -t 0 ] && [ $# != 0 ]; then
+ #We're in a terminal...
+ LD_LIBRARY_PATH="$LT_HOME:$LD_LIBRARY_PATH" $LT_HOME/$BIN "<d><d>dir=`pwd`<s>$CORRECTED" &
+else
+ #We were double clicked
+ LD_LIBRARY_PATH="$LT_HOME:$LD_LIBRARY_PATH" $LT_HOME/$BIN &
+fi

0 comments on commit 17554b5

Please sign in to comment.