pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

thedarkmod: Add files directory...



Module Name:	pkgsrc-wip
Committed By:	nia <nia%NetBSD.org@localhost>
Pushed By:	nee
Date:		Thu Apr 18 16:45:45 2019 +0100
Changeset:	5d27261d80de56a74049140ac23e96c835c97951

Added Files:
	thedarkmod/files/thedarkmod.desktop
	thedarkmod/files/thedarkmod.sh.in

Log Message:
thedarkmod: Add files directory...

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5d27261d80de56a74049140ac23e96c835c97951

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 thedarkmod/files/thedarkmod.desktop | 10 ++++++++++
 thedarkmod/files/thedarkmod.sh.in   |  9 +++++++++
 2 files changed, 19 insertions(+)

diffs:
diff --git a/thedarkmod/files/thedarkmod.desktop b/thedarkmod/files/thedarkmod.desktop
new file mode 100644
index 0000000000..fa7014cb06
--- /dev/null
+++ b/thedarkmod/files/thedarkmod.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=The Dark Mod
+GenericName=Stealth Game
+Comment=Stealth game based on the Thief series
+Icon=thedarkmod
+Exec=thedarkmod
+Terminal=false
+Categories=Game;ActionGame;
diff --git a/thedarkmod/files/thedarkmod.sh.in b/thedarkmod/files/thedarkmod.sh.in
new file mode 100644
index 0000000000..caf898e3b2
--- /dev/null
+++ b/thedarkmod/files/thedarkmod.sh.in
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+if [ ${XDG_DATA_HOME} ]; then
+	mkdir -p ${XDG_DATA_HOME}/thedarkmod
+	cd ${XDG_DATA_HOME}/thedarkmod
+else
+	mkdir -p ${HOME}/.local/share/thedarkmod
+	cd ${HOME}/.local/share/thedarkmod
+fi
+exec @PREFIX@/libexec/thedarkmod "$@"


Home | Main Index | Thread Index | Old Index