pkgsrc-WIP-changes archive

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

sauerbraten: Add desktop entry.



Module Name:	pkgsrc-wip
Committed By:	nia <nia%netbsd.org@localhost>
Pushed By:	nee
Date:		Fri Jun 28 00:11:28 2019 +0100
Changeset:	0a8e217939ff3c608bf98b58b1e508ed51d8052c

Modified Files:
	sauerbraten/Makefile
	sauerbraten/PLIST
Added Files:
	sauerbraten/files/sauerbraten.desktop

Log Message:
sauerbraten: Add desktop entry.

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

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

diffstat:
 sauerbraten/Makefile                  | 10 ++++++++++
 sauerbraten/PLIST                     |  3 +++
 sauerbraten/files/sauerbraten.desktop |  9 +++++++++
 3 files changed, 22 insertions(+)

diffs:
diff --git a/sauerbraten/Makefile b/sauerbraten/Makefile
index 0040e58198..7e66346579 100644
--- a/sauerbraten/Makefile
+++ b/sauerbraten/Makefile
@@ -21,6 +21,9 @@ LDFLAGS.NetBSD+=	-lrt
 
 INSTALLATION_DIRS+=	bin
 INSTALLATION_DIRS+=	libexec
+INSTALLATION_DIRS+=	share/applications
+INSTALLATION_DIRS+=	share/icons/hicolor/16x16/apps
+INSTALLATION_DIRS+=	share/icons/hicolor/32x32/apps
 INSTALLATION_DIRS+=	share/doc/sauerbraten
 INSTALLATION_DIRS+=	share/sauerbraten/data
 INSTALLATION_DIRS+=	share/sauerbraten/packages
@@ -42,6 +45,12 @@ do-install:
 	    ${DESTDIR}${PREFIX}/libexec
 	${INSTALL_PROGRAM} ${WRKSRC}/src/sauer_server \
 	    ${DESTDIR}${PREFIX}/libexec
+	${INSTALL_DATA} ${FILESDIR}/sauerbraten.desktop \
+	    ${DESTDIR}${PREFIX}/share/applications
+	${INSTALL_DATA} ${WRKSRC}/src/xcode/help/sauer16.png \
+	    ${DESTDIR}${PREFIX}/share/icons/hicolor/16x16/apps/sauerbraten.png
+	${INSTALL_DATA} ${WRKSRC}/src/xcode/help/sauer32.png \
+	    ${DESTDIR}${PREFIX}/share/icons/hicolor/32x32/apps/sauerbraten.png
 	cd ${WRKSRC}/docs && ${PAX} -rw -pp . ${DESTDIR}${PREFIX}/share/doc/sauerbraten
 	cd ${WRKSRC}/data && ${PAX} -rw -pp . ${DESTDIR}${PREFIX}/share/sauerbraten/data
 	cd ${WRKSRC}/packages && ${PAX} -rw -pp . ${DESTDIR}${PREFIX}/share/sauerbraten/packages
@@ -49,6 +58,7 @@ do-install:
 .include "../../audio/SDL_mixer/buildlink3.mk"
 .include "../../graphics/MesaLib/buildlink3.mk"
 .include "../../graphics/SDL_image/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
 .include "../../devel/SDL/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../net/enet/buildlink3.mk"
diff --git a/sauerbraten/PLIST b/sauerbraten/PLIST
index bbe690a11e..ad63933052 100644
--- a/sauerbraten/PLIST
+++ b/sauerbraten/PLIST
@@ -3,6 +3,7 @@ bin/sauer_client
 bin/sauer_server
 libexec/sauer_client
 libexec/sauer_server
+share/applications/sauerbraten.desktop
 share/doc/sauerbraten/config.html
 share/doc/sauerbraten/cube2logo.png
 share/doc/sauerbraten/dev/edgespans.gif
@@ -25,6 +26,8 @@ share/doc/sauerbraten/history.html
 share/doc/sauerbraten/models.html
 share/doc/sauerbraten/rpg.html
 share/doc/sauerbraten/style.css
+share/icons/hicolor/16x16/apps/sauerbraten.png
+share/icons/hicolor/32x32/apps/sauerbraten.png
 share/sauerbraten/data/background.png
 share/sauerbraten/data/background_decal.png
 share/sauerbraten/data/background_detail.png
diff --git a/sauerbraten/files/sauerbraten.desktop b/sauerbraten/files/sauerbraten.desktop
new file mode 100644
index 0000000000..f223a9e27e
--- /dev/null
+++ b/sauerbraten/files/sauerbraten.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=Cube 2: Sauerbraten
+Comment=Multiplayer & singleplayer first person shooter
+Icon=sauerbraten
+Exec=sauer_client
+Terminal=false
+Categories=Game;Shooter;


Home | Main Index | Thread Index | Old Index