From b8afacf1f28ac27321feb9b92bd50dd8961b7736 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 6 Mar 2012 00:01:33 +0000 Subject: Tue Mar 6 00:01:33 UTC 2012 --- community-testing/luajit/Makefile.patch | 11 ++++++++ community-testing/luajit/PKGBUILD | 40 ++++++++++++++++++++++++++++++ community-testing/luajit/luaconf.patch | 11 ++++++++ community-testing/luajit/luajit-arch.patch | 12 +++++++++ 4 files changed, 74 insertions(+) create mode 100644 community-testing/luajit/Makefile.patch create mode 100644 community-testing/luajit/PKGBUILD create mode 100644 community-testing/luajit/luaconf.patch create mode 100644 community-testing/luajit/luajit-arch.patch (limited to 'community-testing/luajit') diff --git a/community-testing/luajit/Makefile.patch b/community-testing/luajit/Makefile.patch new file mode 100644 index 000000000..69e172145 --- /dev/null +++ b/community-testing/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-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 +# Maintainer: Bartłomiej Piotrowski +# Contributor: Paulo Matias +# Contributor: Anders Bergh + +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-testing/luajit/luaconf.patch b/community-testing/luajit/luaconf.patch new file mode 100644 index 000000000..ba9373b52 --- /dev/null +++ b/community-testing/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-testing/luajit/luajit-arch.patch b/community-testing/luajit/luajit-arch.patch new file mode 100644 index 000000000..689a87d4e --- /dev/null +++ b/community-testing/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 \ -- cgit v1.2.3-54-g00ecf