wmitime: Add desktop file.

Adapted from Debian [1].

[1] http://sources.debian.net/src/wmitime/0.3%2B20120605-1/debian/wmitime.desktop/
This commit is contained in:
Doug Torrance 2014-12-20 01:57:09 -06:00 committed by Carlos R. Mafra
parent 2d363c7607
commit c4592ca321
2 changed files with 18 additions and 2 deletions

View file

@ -8,6 +8,7 @@ INSTALL = install
PREFIX = /usr/local PREFIX = /usr/local
BINDIR = $(PREFIX)/bin BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man/man1 MANDIR = $(PREFIX)/share/man/man1
DESKTOPDIR = $(PREFIX)/share/applications
.c.o: .c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
@ -21,12 +22,17 @@ clean::
for i in $(OBJS) ; do \ for i in $(OBJS) ; do \
rm -f $$i ; \ rm -f $$i ; \
done done
rm -f wmitime rm -f wmitime wmitime.desktop
rm -f *~ rm -f *~
install:: wmitime wmitime.desktop:
sed "s|@BINDIR@|$(BINDIR)|" wmitime.desktop.in > $@
install:: wmitime wmitime.desktop
$(INSTALL) -d $(DESTDIR)$(BINDIR) $(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) wmitime $(DESTDIR)$(BINDIR) $(INSTALL) wmitime $(DESTDIR)$(BINDIR)
$(INSTALL) -d $(DESTDIR)$(MANDIR) $(INSTALL) -d $(DESTDIR)$(MANDIR)
$(INSTALL) -m 644 wmitime.1 $(DESTDIR)$(MANDIR) $(INSTALL) -m 644 wmitime.1 $(DESTDIR)$(MANDIR)
$(INSTALL) -d $(DESTDIR)$(DESKTOPDIR)
$(INSTALL) -m 644 wmitime.desktop $(DESTDIR)$(DESKTOPDIR)
@echo "wmitime Installation finished..." @echo "wmitime Installation finished..."

View file

@ -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;