1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Gaurish Sharma <[email protected]>

pkgname=lighttable
pkgver=0.2.0
pkgrel=4
pkgdesc="Light Table is a new interactive IDE that lets you modify running programs and embed anything from websites to games."
url="http://www.lighttable.com/"
license=('custom')
depends=(nss libx11 libxrandr libpng)
arch=('i686' 'x86_64')
source=(http://temp2.kodowa.com.s3.amazonaws.com/playground/bins/LightTableLinux.tar.gz)
md5sums=('fb64ff223c3fe290406372fe12570687b')

[ "$CARCH" = "x86_64" ] && {
	source=(http://temp2.kodowa.com.s3.amazonaws.com/playground/bins/LightTableLinux64.tar.gz)
	md5sums=('71c77bdd33aeb1f34b4640fdd0dc2638')
}

package() {
	install -dm755 "$pkgdir/opt/lighttable" "$pkgdir/usr/bin"

	mv "$srcdir/LightTable/LightTable" "$pkgdir/opt/lighttable/"
	mv "$srcdir/LightTable/nw.pak" "$pkgdir/opt/lighttable/"
	mv "$srcdir/LightTable/libffmpegsumo.so" "$pkgdir/opt/lighttable/"

	ln -s /usr/lib/libudev.so "$pkgdir/opt/lighttable/libudev.so.0"

	cat <<EOF<<EOF > "$pkgdir/usr/bin/lighttable"
#!/bin/sh
cd /opt/lighttable
export LD_LIBRARY_PATH="$PWD:$LD_LIBRARY_PATH"
exec ./LightTable
EOFEOF
	chmod 755 "$pkgdir/usr/bin/lighttable"
}