From c6750ade3605ec511e2a9c981a40d16e7ef3ebd1 Mon Sep 17 00:00:00 2001 From: pancake Date: Fri, 21 Dec 2012 12:59:31 +0100 Subject: [PATCH] Initial import of the LuaJIT package --- srcpkgs/LuaJIT-devel | 1 + srcpkgs/LuaJIT/LuaJIT-devel.template | 15 +++++++++++++++ srcpkgs/LuaJIT/template | 24 ++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 120000 srcpkgs/LuaJIT-devel create mode 100644 srcpkgs/LuaJIT/LuaJIT-devel.template create mode 100644 srcpkgs/LuaJIT/template diff --git a/srcpkgs/LuaJIT-devel b/srcpkgs/LuaJIT-devel new file mode 120000 index 00000000000..5a4e1f5ed68 --- /dev/null +++ b/srcpkgs/LuaJIT-devel @@ -0,0 +1 @@ +LuaJIT \ No newline at end of file diff --git a/srcpkgs/LuaJIT/LuaJIT-devel.template b/srcpkgs/LuaJIT/LuaJIT-devel.template new file mode 100644 index 00000000000..53be85eff0e --- /dev/null +++ b/srcpkgs/LuaJIT/LuaJIT-devel.template @@ -0,0 +1,15 @@ +# Template file for 'lua-devel'. +# +depends="LuaJIT" +short_desc="${short_desc} - development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +do_install() +{ + vmove usr/share/luajit-$version usr/share + vmove usr/include usr + vmove usr/lib/pkgconfig usr/lib + vmove "usr/lib/*" usr/lib +} diff --git a/srcpkgs/LuaJIT/template b/srcpkgs/LuaJIT/template new file mode 100644 index 00000000000..d128e291999 --- /dev/null +++ b/srcpkgs/LuaJIT/template @@ -0,0 +1,24 @@ +# Template file for 'LuaJIT' +pkgname=LuaJIT +version=2.0.0 +distfiles="http://luajit.org/download/$pkgname-$version.tar.gz" +revision=1 +short_desc="a Just-In-Time Compiler for Lua" +maintainer="pancake " +homepage="http://www.luajit.org" +license="MIT" +checksum=deaed645c4a093c5fb250c30c9933c9131ee05c94b13262d58f6e0b60b338c15 +long_desc=" +LuaJIT is a Just-In-Time Compiler (JIT) for the Lua programming language. +Lua is a powerful, dynamic and light-weight programming language. It may +be embedded or used as a general-purpose, stand-alone language." + +subpackages="LuaJIT-devel" + +do_build() { + make PREFIX=/usr ${makejobs} +} + +do_install() { + make DPREFIX=${DESTDIR}/usr DESTDIR=${DESTDIR} INSTALL_SHARE=${DESTDIR}/usr/share PREFIX=/usr install +}