summaryrefslogtreecommitdiff
path: root/community/luajit
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-06 00:01:33 +0000
committerroot <root@rshg054.dnsready.net>2012-03-06 00:01:33 +0000
commitb8afacf1f28ac27321feb9b92bd50dd8961b7736 (patch)
treede441882aca38091a1e438e1d8da8a9af3bd023a /community/luajit
parent11711de1942a141f28faef695c4c78c8357fbf23 (diff)
Tue Mar 6 00:01:33 UTC 2012
Diffstat (limited to 'community/luajit')
-rw-r--r--community/luajit/Makefile.patch11
-rw-r--r--community/luajit/PKGBUILD40
-rw-r--r--community/luajit/luaconf.patch11
-rw-r--r--community/luajit/luajit-arch.patch12
4 files changed, 74 insertions, 0 deletions
diff --git a/community/luajit/Makefile.patch b/community/luajit/Makefile.patch
new file mode 100644
index 000000000..69e172145
--- /dev/null
+++ b/community/luajit/Makefile.patch
@@ -0,0 +1,11 @@
+--- Makefile.orig 2011-12-14 15:15:00.000000000 +0100
++++ Makefile 2012-03-04 14:53:43.137778596 +0100
+@@ -41,7 +41,7 @@
+ INSTALL_MAN= $(INSTALL_SHARE)/man/man1
+ INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig
+
+-INSTALL_TNAME= luajit-$(VERSION)
++INSTALL_TNAME= $(INSTALL_TSYMNAME)
+ INSTALL_TSYMNAME= luajit
+ INSTALL_ANAME= libluajit-$(ABIVER).a
+ INSTALL_SONAME= libluajit-$(ABIVER).so.$(MAJVER).$(MINVER).$(RELVER)
diff --git a/community/luajit/PKGBUILD b/community/luajit/PKGBUILD
new file mode 100644
index 000000000..8e1f0b122
--- /dev/null
+++ b/community/luajit/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 67115 2012-03-04 14:30:22Z 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"
+}
diff --git a/community/luajit/luaconf.patch b/community/luajit/luaconf.patch
new file mode 100644
index 000000000..ba9373b52
--- /dev/null
+++ b/community/luajit/luaconf.patch
@@ -0,0 +1,11 @@
+--- src/luaconf.h.orig 2010-08-24 15:00:00.000000000 +0200
++++ src/luaconf.h 2010-09-06 15:52:22.043333530 +0200
+@@ -33,7 +33,7 @@
+ #define LUA_CPATH_DEFAULT \
+ ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
+ #else
+-#define LUA_ROOT "/usr/local/"
++#define LUA_ROOT "/usr/"
+ #define LUA_LDIR LUA_ROOT "share/lua/5.1/"
+ #define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
+ #ifdef LUA_XROOT
diff --git a/community/luajit/luajit-arch.patch b/community/luajit/luajit-arch.patch
new file mode 100644
index 000000000..689a87d4e
--- /dev/null
+++ b/community/luajit/luajit-arch.patch
@@ -0,0 +1,12 @@
+diff -ruN LuaJIT-1.1.4.orig/src/luaconf.h LuaJIT-1.1.3/src/luaconf.h
+--- LuaJIT-1.1.4.orig/src/luaconf.h 2007-05-24 13:30:00.000000000 +0200
++++ LuaJIT-1.1.4/src/luaconf.h 2007-11-02 06:28:59.000000000 +0100
+@@ -94,7 +94,7 @@
+ ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
+
+ #else
+-#define LUA_ROOT "/usr/local/"
++#define LUA_ROOT "/usr/"
+ #define LUA_LDIR LUA_ROOT "share/lua/5.1/"
+ #define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
+ #define LUA_PATH_DEFAULT \