summaryrefslogtreecommitdiff
path: root/strata/lua/lua.def
diff options
context:
space:
mode:
Diffstat (limited to 'strata/lua/lua.def')
-rw-r--r--strata/lua/lua.def10
1 files changed, 10 insertions, 0 deletions
diff --git a/strata/lua/lua.def b/strata/lua/lua.def
new file mode 100644
index 00000000..b04c2b63
--- /dev/null
+++ b/strata/lua/lua.def
@@ -0,0 +1,10 @@
+name: lua
+configure-commands:
+- sed -e 's/defined(LUA_USE_READLINE)/0/g' src/luaconf.h.orig >src/luaconf.h
+- sed -i -e '/^linux:/{n;s/-lreadline//g;s/-lhistory//g;s/-lncurses//g}' src/Makefile
+build-commands:
+- make debian_linux INSTALL_TOP="$PREFIX" RPATH="$PREFIX/lib"
+install-commands:
+- make INSTALL_TOP="$DESTDIR/$PREFIX" debian_install
+- mkdir -p "$DESTDIR/$PREFIX/lib/pkgconfig"
+- cp lua5.1.pc "$DESTDIR/$PREFIX/lib/pkgconfig/"