adding a desktop entry to tarsnap-gui to make it easy to find for users.
it also helps with automation in environments like gnome where it's easy
to select programs with an associated .desktop file.

attaching the .desktop file and below is the diff.

OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/tarsnap-gui/Makefile,v
diff -u -p -u -r1.17 Makefile
--- Makefile    11 Mar 2022 19:58:05 -0000      1.17
+++ Makefile    3 Jul 2024 15:36:30 -0000
@@ -15,9 +15,19 @@ WANTLIB += ${COMPILER_LIBCXX} GL Qt5Core
 WANTLIB += Qt5Widgets c m

 MODULES =              devel/qmake x11/qt5
-RUN_DEPENDS =          sysutils/tarsnap
+RUN_DEPENDS =          sysutils/tarsnap \
+                                       devel/desktop-file-utils

 do-install:
        ${INSTALL_PROGRAM} ${WRKBUILD}/tarsnap-gui ${PREFIX}/bin/tarsnap-gui
+
+post-install:
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
+       ${INSTALL_DATA} ${FILESDIR}/tarsnap-gui.desktop \
+               ${PREFIX}/share/applications/
+
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/
+       ${INSTALL_DATA} ${WRKSRC}/resources/icons/tarsnap-icon-big.png \
+               ${PREFIX}/share/pixmaps/tarsnap-gui.png

 .include <bsd.port.mk>
cvs server: Diffing pkg
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/sysutils/tarsnap-gui/pkg/PLIST,v
diff -u -p -u -r1.4 PLIST
--- pkg/PLIST   11 Mar 2022 19:58:05 -0000      1.4
+++ pkg/PLIST   3 Jul 2024 15:36:30 -0000
@@ -1,2 +1,6 @@
 @bin bin/tarsnap-gui
+share/applications/tarsnap-gui.desktop
 share/doc/pkg-readmes/${PKGSTEM}
+share/pixmaps/
+share/pixmaps/tarsnap-gui.png
+@tag update-desktop-database

-- 
jagtalon.net
weirder.earth/@jag

Attachment: tarsnap-gui.desktop
Description: application/desktop

Reply via email to