diff options
Diffstat (limited to 'community/luajit')
-rw-r--r-- | community/luajit/Makefile.patch | 15 | ||||
-rw-r--r-- | community/luajit/PKGBUILD | 38 |
2 files changed, 30 insertions, 23 deletions
diff --git a/community/luajit/Makefile.patch b/community/luajit/Makefile.patch index 69e172145..395a04501 100644 --- a/community/luajit/Makefile.patch +++ b/community/luajit/Makefile.patch @@ -1,6 +1,15 @@ ---- Makefile.orig 2011-12-14 15:15:00.000000000 +0100 -+++ Makefile 2012-03-04 14:53:43.137778596 +0100 -@@ -41,7 +41,7 @@ +--- Makefile.orig 2012-10-16 20:30:00.000000000 +0200 ++++ Makefile 2012-10-17 17:17:05.707727130 +0200 +@@ -34,7 +34,7 @@ + INSTALL_SHARE= $(DPREFIX)/share + INSTALL_INC= $(DPREFIX)/include/luajit-$(MAJVER).$(MINVER) + +-INSTALL_LJLIBD= $(INSTALL_SHARE)/luajit-$(VERSION) ++INSTALL_LJLIBD= $(INSTALL_SHARE)/luajit + INSTALL_JITLIB= $(INSTALL_LJLIBD)/jit + INSTALL_LMODD= $(INSTALL_SHARE)/lua + INSTALL_LMOD= $(INSTALL_LMODD)/$(ABIVER) +@@ -43,7 +43,7 @@ INSTALL_MAN= $(INSTALL_SHARE)/man/man1 INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig diff --git a/community/luajit/PKGBUILD b/community/luajit/PKGBUILD index 7a9480d86..97f18eda2 100644 --- a/community/luajit/PKGBUILD +++ b/community/luajit/PKGBUILD @@ -1,37 +1,35 @@ -# $Id: PKGBUILD 70509 2012-05-09 20:30:54Z bpiotrowski $ +# $Id: PKGBUILD 78364 2012-10-17 15:26:40Z 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.0b10 -pkgrel=1 -pkgdesc="A Just-In-Time Compiler for Lua" +pkgver=2.0.0b11 +pkgrel=2 +pkgdesc='A Just-In-Time Compiler for Lua' arch=('i686' 'x86_64') -url="http://luajit.org/" +url='http://luajit.org/' license=('MIT') depends=('gcc-libs') -source=("http://luajit.org/download/LuaJIT-${pkgver/b/-beta}.tar.gz" - 'luaconf.patch' - 'Makefile.patch') -md5sums=('ed66689b96f7ad7bfeffe0b4ff2d63d4' - 'c8da9c6790e20a12a0e2496f438d9dc3' - '8997c5e5fa4f6e8e0b86cc6b888de631') +source=(http://luajit.org/download/LuaJIT-${pkgver/b/-beta}.tar.gz + Makefile.patch) +md5sums=('824aa2684a11e3cc3abe87350a7b6139' + 'c9dff2a84424fa0af322379a5f115fb7') build() { - cd "$srcdir/LuaJIT-${pkgver/b/-beta}" - - patch -Np0 -i "$srcdir/luaconf.patch" - patch -Np0 -i "$srcdir/Makefile.patch" - + cd $srcdir/LuaJIT-${pkgver/b/-beta} + patch -Np0 -i $srcdir/Makefile.patch make } package() { - cd "$srcdir/LuaJIT-${pkgver/b/-beta}" - make install DESTDIR="$pkgdir" PREFIX=/usr + 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 - install -Dm644 "$srcdir/LuaJIT-${pkgver/b/-beta}/COPYRIGHT" \ - "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT" + # Poor man's slot system + ln -s /usr/share/$pkgname $pkgdir/usr/share/$pkgname-${pkgver/b/-beta} } |