pkgsrc-WIP-changes archive

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

7kaa: Add a desktop entry



Module Name:	pkgsrc-wip
Committed By:	nia <nia%netbsd.org@localhost>
Pushed By:	nee
Date:		Thu Jun 27 14:25:39 2019 +0100
Changeset:	f60943afc276ad124350a99957d6b310c490c2d7

Modified Files:
	7kaa/Makefile
	7kaa/PLIST

Log Message:
7kaa: Add a desktop entry

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

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

diffstat:
 7kaa/Makefile | 15 +++++++++++++++
 7kaa/PLIST    |  2 ++
 2 files changed, 17 insertions(+)

diffs:
diff --git a/7kaa/Makefile b/7kaa/Makefile
index 4bd4c93854..59fe54566c 100644
--- a/7kaa/Makefile
+++ b/7kaa/Makefile
@@ -19,9 +19,24 @@ USE_TOOLS+=	pkg-config
 # C++11
 GCC_REQD+=	4.6
 
+TOOL_DEPENDS+=	ImageMagick-[0-9]*:../../graphics/ImageMagick
+
+INSTALLATION_DIRS+=	share/applications
+INSTALLATION_DIRS+=	share/icons/hicolor/32x32/apps
+
+post-extract:
+	${PREFIX}/bin/convert ${WRKSRC}/src/7k.ico ${WRKDIR}/7kaa.png
+
+post-install:
+	${INSTALL_DATA} ${FILESDIR}/7kaa.desktop \
+	    ${DESTDIR}${PREFIX}/share/applications
+	${INSTALL_DATA} ${WRKDIR}/7kaa.png \
+	    ${DESTDIR}${PREFIX}/share/icons/hicolor/32x32/apps
+
 .include "../../audio/openal-soft/buildlink3.mk"
 .include "../../devel/SDL2/buildlink3.mk"
 .include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
 .include "../../net/enet/buildlink3.mk"
 .include "../../www/curl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/7kaa/PLIST b/7kaa/PLIST
index 478003d22d..698c1fa100 100644
--- a/7kaa/PLIST
+++ b/7kaa/PLIST
@@ -494,8 +494,10 @@ share/7kaa/TUTORIAL/8FRYHTAN.TUT
 share/7kaa/TUTORIAL/9SEATPOW.TUT
 share/7kaa/TUTORIAL/LOYALTY.TUT
 share/7kaa/TUTORIAL/SPYING.TUT
+share/applications/7kaa.desktop
 share/doc/7kaa/COPYING
 share/doc/7kaa/README
+share/icons/hicolor/32x32/apps/7kaa.png
 share/locale/de/LC_MESSAGES/7kaa.mo
 share/locale/es/LC_MESSAGES/7kaa.mo
 share/locale/pt_BR/LC_MESSAGES/7kaa.mo


Home | Main Index | Thread Index | Old Index