updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / luajit2 / PKGBUILD
blob87ee597c4617e120bb038f3fdba5ed04ed3532df
1 # Contributor: Anders Bergh <anders1@gmail.com>
2 # Contributor: Andrzej Giniewicz <gginiu@gmail.com>
3 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
4 pkgname=luajit2
5 pkgver=2.0.0_beta9
6 pkgrel=1
7 pkgdesc="A Just-In-Time Compiler for Lua"
8 arch=(i686 x86_64)
9 url="http://luajit.org"
10 license=('MIT')
11 source=(http://luajit.org/download/LuaJIT-${pkgver/_/-}.tar.gz
12         lua_root.patch)
13 md5sums=('e7e03e67e2550817358bc28b44270c6d'
14          'c8da9c6790e20a12a0e2496f438d9dc3')
16 build() {
17   cd "$srcdir"/LuaJIT-${pkgver/_/-}
18   patch -p0 < ../lua_root.patch
20   make
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"