[Pkg-wmaker-commits] [wmitime] 112/127: wmitime: Add desktop file.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Aug 22 01:34:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmitime.

commit ced51c77e1373fa4451d08be278475d21066cb54
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sat Dec 20 01:57:09 2014 -0600

    wmitime: Add desktop file.
    
    Adapted from Debian [1].
    
    [1] http://sources.debian.net/src/wmitime/0.3%2B20120605-1/debian/wmitime.desktop/
---
 Makefile           | 10 ++++++++--
 wmitime.desktop.in | 10 ++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 2cb6164..31a2a99 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ INSTALL = install
 PREFIX = /usr/local
 BINDIR = $(PREFIX)/bin
 MANDIR = $(PREFIX)/share/man/man1
+DESKTOPDIR = $(PREFIX)/share/applications
 
 .c.o:
 	$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
@@ -21,12 +22,17 @@ clean::
 	for i in $(OBJS) ; do \
 		rm -f $$i ; \
 	done
-	rm -f wmitime
+	rm -f wmitime wmitime.desktop
 	rm -f *~
 
-install:: wmitime
+wmitime.desktop:
+	sed "s|@BINDIR@|$(BINDIR)|" wmitime.desktop.in > $@
+
+install:: wmitime wmitime.desktop
 	$(INSTALL) -d $(DESTDIR)$(BINDIR)
 	$(INSTALL) wmitime $(DESTDIR)$(BINDIR)
 	$(INSTALL) -d $(DESTDIR)$(MANDIR)
 	$(INSTALL) -m 644 wmitime.1 $(DESTDIR)$(MANDIR)
+	$(INSTALL) -d $(DESTDIR)$(DESKTOPDIR)
+	$(INSTALL) -m 644 wmitime.desktop $(DESTDIR)$(DESKTOPDIR)
 	@echo "wmitime Installation finished..."
diff --git a/wmitime.desktop.in b/wmitime.desktop.in
new file mode 100644
index 0000000..da694cf
--- /dev/null
+++ b/wmitime.desktop.in
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=Wmitime
+GenericName="Clock dockapp"
+Comment="Display time and internet time"
+Icon=
+Exec=@BINDIR@/wmitime
+Terminal=false
+Categories=Utility;Clock;
+Keywords=clock;dockapp;window maker;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmitime.git



More information about the Pkg-wmaker-commits mailing list