1 # Contributor: Anders Bergh <anders1@gmail.com>
2 # Contributor: Tai Chi Minh Ralph Eastwood <tcmreastwood@gmail.com>
6 pkgdesc="A Just-In-Time Compiler for Lua"
8 url="http://luajit.org"
16 _gitroot="http://luajit.org/git/luajit-2.0.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
38 make install DESTDIR=$pkgdir PREFIX=/usr
39 LUAJITBIN=`ls $pkgdir/usr/bin/luajit-* | sed "s|$pkgdir||"`
40 ln -sf "$LUAJITBIN" $pkgdir/usr/bin/luajit
42 install -Dm644 "$srcdir/luajit-2.0/COPYRIGHT" "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
44 msg "This package does perform the symlink above."