From 0fcddd7bbbf9d8b4589e24dfe35ba4f3d95629cd Mon Sep 17 00:00:00 2001 From: Dennis Payne Date: Thu, 15 Dec 2016 18:01:49 -0500 Subject: [PATCH] Makefile to compile scriptmine. New script and desktop file to run with scriptmine enabled. I have yet to find a global location the scriptmine.so can be placed and have minetest work. --- Makefile | 5 +++++ minetest_with_js | 3 +++ minetest_with_js.desktop | 11 +++++++++++ 3 files changed, 19 insertions(+) create mode 100644 Makefile create mode 100755 minetest_with_js create mode 100644 minetest_with_js.desktop diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..baa9d72 --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +scriptmine.so: + gcc -shared -fPIC -o scriptmine.so scriptmine.c src/duktape.c -Isrc/ `pkg-config --cflags --libs luajit` -lm + +clean: + rm -f scriptmine.so diff --git a/minetest_with_js b/minetest_with_js new file mode 100755 index 0000000..9be503d --- /dev/null +++ b/minetest_with_js @@ -0,0 +1,3 @@ +#!/bin/bash +cd ~/.minetest/mods/scriptmine/ +minetest diff --git a/minetest_with_js.desktop b/minetest_with_js.desktop new file mode 100644 index 0000000..f265d49 --- /dev/null +++ b/minetest_with_js.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Minetest:JS +GenericName=Minetest:JS +Comment=Multiplayer infinite-world block sandbox +Exec=minetest_with_js +Icon=minetest +Terminal=false +Type=Application +Categories=Game; +StartupNotify=false +X-Desktop-File-Install-Version=0.22