summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rwxr-xr-xconfigure.ac3
-rw-r--r--data/evol/Makefile.am5
-rwxr-xr-xdata/evol/evol.in2
-rw-r--r--data/tmw/Makefile.am5
-rwxr-xr-xdata/tmw/tmw.in2
6 files changed, 15 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index a2a7b8b5b..97cd4b1dc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -39,6 +39,8 @@ stamp-h1
PKGBUILD
data/evol/evol.desktop
data/tmw/tmw.desktop
+data/evol/evol
+data/tmw/tmw
# files created by CMake
CMakeFiles/
diff --git a/configure.ac b/configure.ac
index 3756fd320..126a88d41 100755
--- a/configure.ac
+++ b/configure.ac
@@ -398,6 +398,9 @@ docs/Makefile
po/Makefile.in
])
+AC_CONFIG_FILES([data/evol/evol], [chmod +x data/evol/evol])
+AC_CONFIG_FILES([data/tmw/tmw], [chmod +x data/tmw/tmw])
+
AC_OUTPUT
echo
diff --git a/data/evol/Makefile.am b/data/evol/Makefile.am
index 7851bbd75..5ad7b74cf 100644
--- a/data/evol/Makefile.am
+++ b/data/evol/Makefile.am
@@ -1,7 +1,7 @@
desktopdir = $(datarootdir)/applications
-evol-client:
+branding:
mkdir -p "$(DESTDIR)$(pkgdatadir)/data/evol/icons"
mkdir -p "$(DESTDIR)$(datarootdir)/icons"
mkdir -p "$(DESTDIR)$(desktopdir)"
@@ -11,7 +11,8 @@ evol-client:
cp icons/evol-client.png "$(DESTDIR)$(datarootdir)/icons"
cp -r images "$(DESTDIR)$(pkgdatadir)/data/evol"
-EXTRA_DIST = evol.desktop \
+EXTRA_DIST = evol.desktop.in \
+ evol.in \
evol.manaplus \
icons/evol-client.ico \
icons/evol-client.png \
diff --git a/data/evol/evol.in b/data/evol/evol.in
new file mode 100755
index 000000000..2b010dc80
--- /dev/null
+++ b/data/evol/evol.in
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec manaplus @datadir@/manaplus/data/evol/evol.manaplus "$@"
diff --git a/data/tmw/Makefile.am b/data/tmw/Makefile.am
index 264353083..f8135b488 100644
--- a/data/tmw/Makefile.am
+++ b/data/tmw/Makefile.am
@@ -1,7 +1,7 @@
desktopdir = $(datarootdir)/applications
-tmw:
+branding:
mkdir -p "$(DESTDIR)$(pkgdatadir)/data/tmw/icons"
mkdir -p "$(DESTDIR)$(datarootdir)/icons"
mkdir -p "$(DESTDIR)$(desktopdir)"
@@ -11,7 +11,8 @@ tmw:
cp icons/tmw-client.png "$(DESTDIR)$(datarootdir)/icons/tmw.png"
cp -r images "$(DESTDIR)$(pkgdatadir)/data/tmw"
-EXTRA_DIST = tmw.desktop \
+EXTRA_DIST = tmw.desktop.in \
+ tmw.in \
tmw.manaplus \
icons/tmw-client.ico \
icons/tmw-client.png \
diff --git a/data/tmw/tmw.in b/data/tmw/tmw.in
new file mode 100755
index 000000000..d726db2c3
--- /dev/null
+++ b/data/tmw/tmw.in
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec manaplus @datadir@/manaplus/data/tmw/tmw.manaplus "$@"