mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 22:03:48 +01:00
Add a desktop file for zathura
This commit is contained in:
parent
659f541939
commit
b525ef59d7
8
Makefile
8
Makefile
@ -64,7 +64,8 @@ gdb: debug
|
|||||||
dist: clean
|
dist: clean
|
||||||
@mkdir -p ${PROJECT}-${VERSION}
|
@mkdir -p ${PROJECT}-${VERSION}
|
||||||
@cp -R LICENSE Makefile config.mk config.def.h README \
|
@cp -R LICENSE Makefile config.mk config.def.h README \
|
||||||
${PROJECT}.1 ${SOURCE} ${PROJECT}-${VERSION}
|
${PROJECT}.1 ${SOURCE} ${PROJECT}-${VERSION} \
|
||||||
|
${PROJECT}.desktop
|
||||||
@tar -cf ${PROJECT}-${VERSION}.tar ${PROJECT}-${VERSION}
|
@tar -cf ${PROJECT}-${VERSION}.tar ${PROJECT}-${VERSION}
|
||||||
@gzip ${PROJECT}-${VERSION}.tar
|
@gzip ${PROJECT}-${VERSION}.tar
|
||||||
@rm -rf ${PROJECT}-${VERSION}
|
@rm -rf ${PROJECT}-${VERSION}
|
||||||
@ -78,9 +79,14 @@ install: all
|
|||||||
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
||||||
@sed "s/VERSION/${VERSION}/g" < ${PROJECT}.1 > ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1
|
@sed "s/VERSION/${VERSION}/g" < ${PROJECT}.1 > ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1
|
||||||
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1
|
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1
|
||||||
|
@mkdir -p ${DESTDIR}${DESKTOPPREFIX}
|
||||||
|
@echo installing desktop file
|
||||||
|
@install -m 644 ${PROJECT}.desktop ${DESTDIR}${DESKTOPPREFIX}
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@echo removing executable file
|
@echo removing executable file
|
||||||
@rm -f ${DESTDIR}${PREFIX}/bin/${PROJECT}
|
@rm -f ${DESTDIR}${PREFIX}/bin/${PROJECT}
|
||||||
@echo removing manual page
|
@echo removing manual page
|
||||||
@rm -f ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1
|
@rm -f ${DESTDIR}${MANPREFIX}/man1/${PROJECT}.1
|
||||||
|
@echo removing desktop file
|
||||||
|
@rm -f ${DESTDIR}${DESKTOPPREFIX}/${PROJECT}.desktop
|
||||||
|
@ -6,6 +6,7 @@ VERSION = 0.0.8.3
|
|||||||
# paths
|
# paths
|
||||||
PREFIX ?= /usr
|
PREFIX ?= /usr
|
||||||
MANPREFIX ?= ${PREFIX}/share/man
|
MANPREFIX ?= ${PREFIX}/share/man
|
||||||
|
DESKTOPPREFIX ?= ${PREFIX}/share/desktop
|
||||||
|
|
||||||
# libs
|
# libs
|
||||||
GTK_INC = $(shell pkg-config --cflags gtk+-2.0 poppler-glib)
|
GTK_INC = $(shell pkg-config --cflags gtk+-2.0 poppler-glib)
|
||||||
|
12
zathura.desktop
Normal file
12
zathura.desktop
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
Encoding=UTF-8
|
||||||
|
Name=Zathura
|
||||||
|
Comment=A minimalistic PDF viewer
|
||||||
|
Comment[de]=Ein minimalistischer PDF-Betrachter
|
||||||
|
Exec=zathura %f
|
||||||
|
Terminal=false
|
||||||
|
Categories=Office;Viewer
|
||||||
|
MimeType=application/pdf
|
||||||
|
|
Loading…
Reference in New Issue
Block a user