shithub: choc

Download patch

ref: bc50bd123e2b43ff404599b2a017a98261a66e47
parent: 4ec9978b44011e85eae623ce7be7c705f05ca491
author: Mike Swanson <[email protected]>
date: Sat Sep 7 06:57:50 EDT 2019

use reverse-DNS naming for installing *.desktop files

This is similar to and consistent with the previous commit, and the
desktop entry specification recommends doing this as well.

--- a/configure.ac
+++ b/configure.ac
@@ -168,22 +168,22 @@
 data/Makefile
 src/Makefile
 src/Doom.metainfo.xml
-src/doom.desktop
-src/doom-screensaver.desktop
+src/Doom.desktop
+src/Doom_Screensaver.desktop
 src/doom/Makefile
 src/Heretic.metainfo.xml
-src/heretic.desktop
+src/Heretic.desktop
 src/heretic/Makefile
 src/Hexen.metainfo.xml
-src/hexen.desktop
+src/Hexen.desktop
 src/hexen/Makefile
 src/resource.rc
 src/setup-res.rc
 src/setup/Makefile
-src/setup/setup.desktop
+src/setup/Setup.desktop
 src/setup/setup-manifest.xml
 src/Strife.metainfo.xml
-src/strife.desktop
+src/Strife.desktop
 src/strife/Makefile
 textscreen/Makefile
 textscreen/examples/Makefile
--- /dev/null
+++ b/src/Doom.desktop.in
@@ -1,0 +1,8 @@
+[Desktop Entry]
+Name=@PACKAGE_SHORTNAME@ Doom
+Exec=@PROGRAM_PREFIX@doom
+Icon=@PROGRAM_PREFIX@doom
+Type=Application
+Comment=@PACKAGE_SHORTDESC@
+Categories=Game;ActionGame;
+Keywords=first;person;shooter;vanilla;
--- /dev/null
+++ b/src/Doom_Screensaver.desktop.in
@@ -1,0 +1,10 @@
+[Desktop Entry]
+Name=@PACKAGE_SHORTNAME@ Doom
+Comment=@PACKAGE_SHORTDESC@
+TryExec=@PROGRAM_PREFIX@doom
+Exec=@PROGRAM_PREFIX@doom
+StartupNotify=false
+Terminal=false
+Type=Application
+OnlyShowIn=GNOME;MATE;
+Categories=Screensaver;
--- /dev/null
+++ b/src/Heretic.desktop.in
@@ -1,0 +1,8 @@
+[Desktop Entry]
+Name=@PACKAGE_SHORTNAME@ Heretic
+Exec=@PROGRAM_PREFIX@heretic
+Icon=@PROGRAM_PREFIX@doom
+Type=Application
+Comment=@PACKAGE_SHORTDESC@
+Categories=Game;ActionGame;
+Keywords=first;person;shooter;doom;vanilla;
--- /dev/null
+++ b/src/Hexen.desktop.in
@@ -1,0 +1,8 @@
+[Desktop Entry]
+Name=@PACKAGE_SHORTNAME@ Hexen
+Exec=@PROGRAM_PREFIX@hexen
+Icon=@PROGRAM_PREFIX@doom
+Type=Application
+Comment=@PACKAGE_SHORTDESC@
+Categories=Game;ActionGame;
+Keywords=first;person;shooter;doom;vanilla;
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -217,7 +217,7 @@
 EXTRA_DIST =                        \
         CMakeLists.txt              \
         icon.c                      \
-        doom-screensaver.desktop.in \
+        Doom_Screensaver.desktop.in \
         manifest.xml
 
 metainfodir = $(prefix)/share/metainfo
@@ -241,28 +241,28 @@
 
 appdir = $(prefix)/share/applications
 app_DATA =                                 \
-           @[email protected]    \
-           @[email protected] \
-           @[email protected]   \
-           @[email protected]
+           @[email protected]    \
+           @[email protected] \
+           @[email protected]   \
+           @[email protected]
 
-@[email protected] : doom.desktop
-	cp doom.desktop $@
+@[email protected] : Doom.desktop
+	cp Doom.desktop $@
 
-@[email protected] : heretic.desktop
-	cp heretic.desktop $@
+@[email protected] : Heretic.desktop
+	cp Heretic.desktop $@
 
-@[email protected] : hexen.desktop
-	cp hexen.desktop $@
+@[email protected] : Hexen.desktop
+	cp Hexen.desktop $@
 
-@[email protected] : strife.desktop
-	cp strife.desktop $@
+@[email protected] : Strife.desktop
+	cp Strife.desktop $@
 
 screensaverdir = $(prefix)/share/applications/screensavers
-screensaver_DATA = @[email protected]
+screensaver_DATA = @[email protected]_Screensaver.desktop
 
-@[email protected]: doom-screensaver.desktop
-	cp doom-screensaver.desktop $@
+@[email protected]_Screensaver.desktop: Doom_Screensaver.desktop
+	cp Doom_Screensaver.desktop $@
 
 CLEANFILES = $(execgames_SCRIPTS) $(app_DATA) $(screensaver_DATA)
 
--- /dev/null
+++ b/src/Strife.desktop.in
@@ -1,0 +1,8 @@
+[Desktop Entry]
+Name=@PACKAGE_SHORTNAME@ Strife
+Exec=@PROGRAM_PREFIX@strife
+Icon=@PROGRAM_PREFIX@doom
+Type=Application
+Comment=@PACKAGE_SHORTDESC@
+Categories=Game;ActionGame;
+Keywords=first;person;shooter;doom;vanilla;
--- a/src/doom-screensaver.desktop.in
+++ /dev/null
@@ -1,10 +1,0 @@
-[Desktop Entry]
-Name=@PACKAGE_SHORTNAME@ Doom
-Comment=@PACKAGE_SHORTDESC@
-TryExec=@PROGRAM_PREFIX@doom
-Exec=@PROGRAM_PREFIX@doom
-StartupNotify=false
-Terminal=false
-Type=Application
-OnlyShowIn=GNOME;MATE;
-Categories=Screensaver;
--- a/src/doom.desktop.in
+++ /dev/null
@@ -1,8 +1,0 @@
-[Desktop Entry]
-Name=@PACKAGE_SHORTNAME@ Doom
-Exec=@PROGRAM_PREFIX@doom
-Icon=@PROGRAM_PREFIX@doom
-Type=Application
-Comment=@PACKAGE_SHORTDESC@
-Categories=Game;ActionGame;
-Keywords=first;person;shooter;vanilla;
--- a/src/heretic.desktop.in
+++ /dev/null
@@ -1,8 +1,0 @@
-[Desktop Entry]
-Name=@PACKAGE_SHORTNAME@ Heretic
-Exec=@PROGRAM_PREFIX@heretic
-Icon=@PROGRAM_PREFIX@doom
-Type=Application
-Comment=@PACKAGE_SHORTDESC@
-Categories=Game;ActionGame;
-Keywords=first;person;shooter;doom;vanilla;
--- a/src/hexen.desktop.in
+++ /dev/null
@@ -1,8 +1,0 @@
-[Desktop Entry]
-Name=@PACKAGE_SHORTNAME@ Hexen
-Exec=@PROGRAM_PREFIX@hexen
-Icon=@PROGRAM_PREFIX@doom
-Type=Application
-Comment=@PACKAGE_SHORTDESC@
-Categories=Game;ActionGame;
-Keywords=first;person;shooter;doom;vanilla;
--- a/src/setup/Makefile.am
+++ b/src/setup/Makefile.am
@@ -26,12 +26,12 @@
     setup_icon.c
 
 appdir = $(prefix)/share/applications
-app_DATA = @[email protected]
+app_DATA = @[email protected]
 
 CLEANFILES = $(app_DATA)
 
-@[email protected] : setup.desktop
-	cp setup.desktop $@
+@[email protected] : Setup.desktop
+	cp Setup.desktop $@
 
 if HAVE_PYTHON
 
--- /dev/null
+++ b/src/setup/Setup.desktop.in
@@ -1,0 +1,8 @@
+[Desktop Entry]
+Name=@PACKAGE_SHORTNAME@ Setup
+Exec=@PROGRAM_PREFIX@setup
+Icon=@PROGRAM_PREFIX@setup
+Type=Application
+Comment=Setup tool for @PACKAGE_SHORTNAME@
+Categories=Settings;
+Keywords=first;person;shooter;doom;heretic;hexen;strife;vanilla;
--- a/src/setup/setup.desktop.in
+++ /dev/null
@@ -1,8 +1,0 @@
-[Desktop Entry]
-Name=@PACKAGE_SHORTNAME@ Setup
-Exec=@PROGRAM_PREFIX@setup
-Icon=@PROGRAM_PREFIX@setup
-Type=Application
-Comment=Setup tool for @PACKAGE_SHORTNAME@
-Categories=Settings;
-Keywords=first;person;shooter;doom;heretic;hexen;strife;vanilla;
--- a/src/strife.desktop.in
+++ /dev/null
@@ -1,8 +1,0 @@
-[Desktop Entry]
-Name=@PACKAGE_SHORTNAME@ Strife
-Exec=@PROGRAM_PREFIX@strife
-Icon=@PROGRAM_PREFIX@doom
-Type=Application
-Comment=@PACKAGE_SHORTDESC@
-Categories=Game;ActionGame;
-Keywords=first;person;shooter;doom;vanilla;