Added a desktop entry

This commit is contained in:
Pierre Pronchery 2012-12-18 19:16:52 +01:00
parent 2bff4bbb0f
commit 7e7510316a
5 changed files with 38 additions and 2 deletions

View File

@ -1,6 +1,6 @@
PACKAGE = Camera
VERSION = 0.0.0
SUBDIRS = src
SUBDIRS = data src
RM ?= rm -f
LN ?= ln -f
TAR ?= tar -czvf
@ -21,6 +21,9 @@ dist:
$(RM) -r -- $(PACKAGE)-$(VERSION)
$(LN) -s -- . $(PACKAGE)-$(VERSION)
@$(TAR) $(PACKAGE)-$(VERSION).tar.gz -- \
$(PACKAGE)-$(VERSION)/data/Makefile \
$(PACKAGE)-$(VERSION)/data/camera.desktop \
$(PACKAGE)-$(VERSION)/data/project.conf \
$(PACKAGE)-$(VERSION)/src/camera.c \
$(PACKAGE)-$(VERSION)/src/main.c \
$(PACKAGE)-$(VERSION)/src/Makefile \

21
data/Makefile Normal file
View File

@ -0,0 +1,21 @@
PREFIX = /usr/local
DESTDIR =
MKDIR ?= mkdir -p
INSTALL ?= install
RM ?= rm -f
all:
clean:
distclean: clean
install:
$(MKDIR) $(DESTDIR)$(PREFIX)/share/applications
$(INSTALL) -m 0644 -- camera.desktop $(DESTDIR)$(PREFIX)/share/applications/camera.desktop
uninstall:
$(RM) -- $(DESTDIR)$(PREFIX)/share/applications/camera.desktop
.PHONY: all clean distclean install uninstall

8
data/camera.desktop Normal file
View File

@ -0,0 +1,8 @@
[Desktop Entry]
Name=Video camera
Comment=Take pictures using a video camera
Exec=camera
Icon=camera-video
Type=Application
Categories=AudioVideo;Video;GTK;
StartupNotify=true

4
data/project.conf Normal file
View File

@ -0,0 +1,4 @@
dist=Makefile,camera.desktop
[camera.desktop]
install=$(PREFIX)/share/applications

View File

@ -1,6 +1,6 @@
package=Camera
version=0.0.0
subdirs=src
subdirs=data,src
config=h
dist=Makefile,config.h