1 # Contributor: Anders Bergh <anders1@gmail.com>
2 # Contributor: Andrzej Giniewicz <gginiu@gmail.com>
3 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
7 pkgdesc="A Just-In-Time Compiler for Lua"
9 url="http://luajit.org"
11 source=(http://luajit.org/download/LuaJIT-${pkgver/_/-}.tar.gz
13 md5sums=('e7e03e67e2550817358bc28b44270c6d'
14 'c8da9c6790e20a12a0e2496f438d9dc3')
17 cd "$srcdir"/LuaJIT-${pkgver/_/-}
18 patch -p0 < ../lua_root.patch
21 make install DESTDIR="$pkgdir" PREFIX=/usr
22 ln -sf luajit-${pkgver/_/-} "$pkgdir"/usr/bin/luajit2
24 install -Dm644 "$srcdir/LuaJIT-${pkgver/_/-}/COPYRIGHT" "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"