pkgsrc-WIP-changes archive

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

coyim: Added a desktop entry and icon.



Module Name:	pkgsrc-wip
Committed By:	Santhosh Raju <fox%NetBSD.org@localhost>
Pushed By:	fox
Date:		Sat Apr 20 11:21:05 2019 -0500
Changeset:	05f86aea049ce6b8daad19cf5d1a182445caa4cc

Modified Files:
	coyim/Makefile
	coyim/PLIST

Log Message:
coyim: Added a desktop entry and icon.

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

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

diffstat:
 coyim/Makefile | 20 ++++++++++++++++++++
 coyim/PLIST    |  2 ++
 2 files changed, 22 insertions(+)

diffs:
diff --git a/coyim/Makefile b/coyim/Makefile
index 72fb17cad6..4c0edb8ec1 100644
--- a/coyim/Makefile
+++ b/coyim/Makefile
@@ -24,9 +24,29 @@ MAKE_ENV+=	CGO_CPPFLAGS_ALLOW=".*"
 
 CHECK_PORTABILITY_SKIP+=	build/mac-bundle/coyim-launcher.sh
 
+COYIM_ICON=		coyim.png
+COYIM_ICON_SRC=		${WRKSRC}/build/mac-bundle/coy.iconset/icon_32x32%2x.png@localhost
+COYIM_DESKTOP_SAMPLE=	${WRKSRC}/build/coyim.desktop.sample
+COYIM_DESKTOP=		${WRKSRC}/build/coyim.desktop
+
+INSTALLATION_DIRS+=	share/applications share/pixmaps
+
+post-build:
+	${CP} ${COYIM_DESKTOP} ${COYIM_DESKTOP_SAMPLE}
+	${SED}  -e '/^#/d' \
+		-e '/^$$/d' \
+		< ${COYIM_DESKTOP_SAMPLE} \
+		> ${COYIM_DESKTOP}
+	${ECHO} "Exec=${PREFIX}/bin/coyim" >> ${COYIM_DESKTOP}
+	${ECHO} "Icon=${COYIM_ICON}" >> ${COYIM_DESKTOP}
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKDIR}/bin/coyim ${DESTDIR}${PREFIX}/bin
 
+post-install:
+	${INSTALL_DATA} ${COYIM_DESKTOP} ${DESTDIR}${PREFIX}/share/applications/
+	${INSTALL_DATA} ${COYIM_ICON_SRC} ${DESTDIR}${PREFIX}/share/pixmaps/${COYIM_ICON}
+
 BUILDLINK_API_DEPENDS.glib2+=		glib2>=2.31.13
 .include "../../devel/glib2/buildlink3.mk"
 .include "../../graphics/cairo/buildlink3.mk"
diff --git a/coyim/PLIST b/coyim/PLIST
index 74c6f95375..b5674fc423 100644
--- a/coyim/PLIST
+++ b/coyim/PLIST
@@ -1,2 +1,4 @@
 @comment $NetBSD$
 bin/coyim
+share/applications/coyim.desktop
+share/pixmaps/coyim.png


Home | Main Index | Thread Index | Old Index