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:
parent
2d363c7607
commit
c4592ca321
|
@ -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..."
|
||||
|
|
10
wmitime/wmitime.desktop.in
Normal file
10
wmitime/wmitime.desktop.in
Normal 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;
|
Loading…
Reference in a new issue