summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoraligator2018-05-19 18:42:16 +0200
committeraligator2018-05-19 18:42:16 +0200
commitdc5ce25f650e72ac6140be3a23c874eeb370e283 (patch)
tree46bd646936229a2a9b3171fc0af63eb6ea3127ac
parentdb8fac60fafd2c2997ef3678b6aa38de77edca2a (diff)
downloadaur-dc5ce25f650e72ac6140be3a23c874eeb370e283.tar.gz
added .desktop files
-rw-r--r--PKGBUILD9
-rw-r--r--jsettlers-mapcreator.desktop12
-rw-r--r--jsettlers.desktop17
3 files changed, 36 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 54f7097fffb..89dd289ba28 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@ pkgrel=2
_pkgname='jsettlers'
pkgname=${_pkgname}'-git'
-pkgver=0.4.0.alpha.r188.g69db7d0f8
+pkgver=0.4.0.alpha.r276.g0c7a1979b
pkgver() {
cd ${_pkgname}
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
@@ -64,4 +64,9 @@ package() {
echo 'cd '${_workingDir} >> ${bin}/${_mapCreatorScript}
echo 'exec /usr/bin/java -jar /usr/share/java/'${_pkgname}'/'${_mapCreatorName}'.jar --maps=/usr/share/'${_pkgname}'/maps "$@"' >> ${bin}/${_mapCreatorScript}
chmod +x ${bin}/${_mapCreatorScript}
-} \ No newline at end of file
+
+ install -Dm644 ../${_pkgname}.desktop "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+ install -Dm644 ../${_mapCreatorScript}.desktop "${pkgdir}/usr/share/applications/${_mapCreatorScript}.desktop"
+ install -Dm644 ${srcdir}/jsettlers/jsettlers.mapcreator/src/main/resources/jsettlers/mapcreator/main/window/icon.png "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
+ install -Dm644 ${srcdir}/jsettlers/jsettlers.mapcreator/src/main/resources/jsettlers/mapcreator/main/window/icon.png "${pkgdir}/usr/share/pixmaps/${_mapCreatorScript}.png"
+}
diff --git a/jsettlers-mapcreator.desktop b/jsettlers-mapcreator.desktop
new file mode 100644
index 00000000000..7c449100624
--- /dev/null
+++ b/jsettlers-mapcreator.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Version=1.0
+Name=JSettlers Mapcreator
+Exec=jsettlers-mapcreator
+Icon=jsettlers-mapcreator
+Terminal=false
+Type=Application
+Categories=Game;StrategyGame;
+Comment=Mapcreator for JSettlers
+Comment[de]=Karteneditor für JSettlers
+Keywords=Settler;map editor;RTS;Realtime Strategy;Economic Simulation Game;History;Warfare;Romans;
+
diff --git a/jsettlers.desktop b/jsettlers.desktop
new file mode 100644
index 00000000000..f4dd0723a2e
--- /dev/null
+++ b/jsettlers.desktop
@@ -0,0 +1,17 @@
+[Desktop Entry]
+Version=1.0
+Name=JSettlers
+Exec=jsettlers
+Icon=jsettlers
+Terminal=false
+Type=Application
+Categories=Game;StrategyGame;
+Comment=A Remake of "The Settlers III" for Windows, Linux, Mac and Android
+Comment[de]=Ein "Die Siedler III" remake für Windows, Linux, Mac und Android
+Keywords=Settler;RTS;Realtime Strategy;Economic Simulation Game;History;Warfare;Romans;
+Actions=Mapcreator;
+
+[Desktop Action Mapcreator]
+Name=JSettlers Map Creator
+Exec=jsettlers-mapcreator
+