diff --git a/template/.DirIcon b/template/.DirIcon
new file mode 120000
index 0000000..4078539
--- /dev/null
+++ b/template/.DirIcon
@@ -0,0 +1 @@
+minetest.png
\ No newline at end of file
diff --git a/template/AppRun b/template/AppRun
new file mode 100755
index 0000000..4cb1471
--- /dev/null
+++ b/template/AppRun
@@ -0,0 +1,8 @@
+#!/bin/sh
+DIR=`dirname $0`
+
+if [ "$1" = "--server" ]; then
+    $DIR/usr/bin/minetestserver "$@"
+else
+    $DIR/usr/bin/minetest "$@"
+fi
diff --git a/template/minetest.desktop b/template/minetest.desktop
new file mode 100644
index 0000000..ca493c4
--- /dev/null
+++ b/template/minetest.desktop
@@ -0,0 +1,17 @@
+[Desktop Entry]
+Name=Minetest
+GenericName=Minetest
+Comment=Multiplayer infinite-world block sandbox
+Comment[de]=Mehrspieler-Sandkastenspiel mit unendlichen Blockwelten
+Comment[es]=Juego sandbox multijugador con mundos infinitos
+Comment[fr]=Jeu multijoueurs de type bac à sable avec des mondes infinis
+Comment[ja]=マルチプレイに対応した、無限の世界のブロック型サンドボックスゲームです
+Comment[ru]=Игра-песочница с безграничным миром, состоящим из блоков
+Comment[tr]=Tek-Çok oyuncuyla küplerden sonsuz dünyalar inşa et
+Exec=minetest
+Icon=minetest
+Terminal=false
+Type=Application
+Categories=Game;Simulation;
+StartupNotify=false
+Keywords=sandbox;world;mining;crafting;blocks;nodes;multiplayer;roleplaying;
diff --git a/template/minetest.png b/template/minetest.png
new file mode 100644
index 0000000..0241a91
Binary files /dev/null and b/template/minetest.png differ
diff --git a/template/usr/bin/minetest b/template/usr/bin/minetest
new file mode 100755
index 0000000..7270927
--- /dev/null
+++ b/template/usr/bin/minetest
@@ -0,0 +1,6 @@
+#!/bin/sh
+DIR=`dirname $0`
+
+export LD_LIBRARY_PATH="$DIR/../lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}"
+
+$DIR/minetestserver-x86_64.bin "$2" "$3"
diff --git a/template/usr/bin/minetestserver b/template/usr/bin/minetestserver
new file mode 100755
index 0000000..7270927
--- /dev/null
+++ b/template/usr/bin/minetestserver
@@ -0,0 +1,6 @@
+#!/bin/sh
+DIR=`dirname $0`
+
+export LD_LIBRARY_PATH="$DIR/../lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}"
+
+$DIR/minetestserver-x86_64.bin "$2" "$3"