summaryrefslogtreecommitdiff
path: root/community-testing/luajit/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/luajit/PKGBUILD')
-rw-r--r--community-testing/luajit/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community-testing/luajit/PKGBUILD b/community-testing/luajit/PKGBUILD
new file mode 100644
index 000000000..bd1906fe0
--- /dev/null
+++ b/community-testing/luajit/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 67113 2012-03-04 14:27:50Z bpiotrowski $
+# Maintainer: Chris Brannon <chris@the-brannons.com>
+# Maintainer: Bartłomiej Piotrowski
+# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
+# Contributor: Anders Bergh <anders1@gmail.com>
+
+pkgname=luajit
+pkgver=2.0.0b9
+pkgrel=1
+pkgdesc="A Just-In-Time Compiler for Lua"
+arch=('i686' 'x86_64')
+url="http://luajit.org/"
+license=('MIT')
+depends=('gcc-libs')
+source=("http://luajit.org/download/LuaJIT-${pkgver/b/-beta}.tar.gz"
+ "http://luajit.org/download/beta${pkgver: -1}_hotfix1.patch"
+ 'luaconf.patch'
+ 'Makefile.patch')
+md5sums=('e7e03e67e2550817358bc28b44270c6d'
+ '4920f04fcef1ce486891509faf26b4f1'
+ 'c8da9c6790e20a12a0e2496f438d9dc3'
+ '8997c5e5fa4f6e8e0b86cc6b888de631')
+
+build() {
+ cd "$srcdir/LuaJIT-${pkgver/b/-beta}"
+
+ patch -Np1 -i "$srcdir/beta${pkgver: -1}_hotfix1.patch"
+ patch -Np0 -i "$srcdir/luaconf.patch"
+ patch -Np0 -i "$srcdir/Makefile.patch"
+
+ make
+}
+
+package() {
+ cd "$srcdir/LuaJIT-${pkgver/b/-beta}"
+ make install DESTDIR="$pkgdir" PREFIX=/usr
+
+ install -Dm644 "$srcdir/LuaJIT-${pkgver/b/-beta}/COPYRIGHT" \
+ "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
+}