summarylogtreecommitdiffstats
path: root/arcane_fortune
diff options
context:
space:
mode:
authorWorMzy Tykashi2020-08-04 00:30:46 +0100
committerWorMzy Tykashi2020-08-04 00:30:46 +0100
commit837f182a2584e90ceede88d6b7035856fc4d6566 (patch)
tree53267630eb14eba5740d43af2873677594a64d3a /arcane_fortune
downloadaur-837f182a2584e90ceede88d6b7035856fc4d6566.tar.gz
Initial commit
Diffstat (limited to 'arcane_fortune')
-rw-r--r--arcane_fortune15
1 files changed, 15 insertions, 0 deletions
diff --git a/arcane_fortune b/arcane_fortune
new file mode 100644
index 000000000000..82027aa6a8cf
--- /dev/null
+++ b/arcane_fortune
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Game has limited knowledge of terms, "xterm", "xterm-256color" and "linux" should be safe
+#export TERM=linux
+pkgname=arcanefortune
+
+if [[ ! -d "${HOME}/.${pkgname}" ]]; then
+ mkdir -p "${HOME}/.${pkgname}/saves"
+ ln -s /opt/"${pkgname}"/nn "${HOME}/.${pkgname}/nn"
+ ln -s /opt/"${pkgname}"/arcane_fortune "${HOME}/.${pkgname}/arcane_fortune"
+ cp -rn /opt/"${pkgname}"/config "${HOME}/.${pkgname}/config"
+fi
+
+cd "${HOME}/.${pkgname}"
+exec ./arcane_fortune "${@}"