From 50ea97468c2f1886dd46d6beeef601c6ab008aca Mon Sep 17 00:00:00 2001
From: Sebastian Ramacher
Date: Mon, 29 Sep 2014 14:44:12 +0200
Subject: [PATCH] Add AppData file
Signed-off-by: Sebastian Ramacher
---
Makefile | 9 ++++++++-
config.mk | 1 +
data/zathura.appdata.xml | 33 +++++++++++++++++++++++++++++++++
3 files changed, 42 insertions(+), 1 deletion(-)
create mode 100644 data/zathura.appdata.xml
diff --git a/Makefile b/Makefile
index 1e28e81..49363f3 100644
--- a/Makefile
+++ b/Makefile
@@ -209,7 +209,12 @@ install-dbus:
$(QUIET)mkdir -m 755 -p $(DESTDIR)$(DBUSINTERFACEDIR)
$(QUIET)install -m 644 data/org.pwmt.zathura.xml $(DESTDIR)$(DBUSINTERFACEDIR)
-install: all install-headers install-manpages install-dbus
+install-appdata:
+ $(call colorecho,INSTALL,"AppData file")
+ $(QUIET)mkdir -m 755 -p $(DESTDIR)$(APPDATAPREFIX)
+ $(QUIET)install -m 644 data/$(PROJECT).appdata.xml $(DESTDIR)$(APPDATAPREFIX)
+
+install: all install-headers install-manpages install-dbus install-appdata
$(call colorecho,INSTALL,"executeable file")
$(QUIET)mkdir -m 755 -p ${DESTDIR}${PREFIX}/bin
$(QUIET)install -m 755 ${PROJECT} ${DESTDIR}${PREFIX}/bin
@@ -235,6 +240,8 @@ uninstall: uninstall-headers
$(QUIET)rm -f ${DESTDIR}${DESKTOPPREFIX}/${PROJECT}.desktop
$(call colorecho,UNINSTALL,"D-Bus interface definitions")
$(QUIET)rm -f $(DESTDIR)$(DBUSINTERFACEDIR)/org.pwmt.zathura.xml
+ $(call colorecho,UNINSTALL,"AppData file")
+ $(QUIET)rm -f $(DESTDIR)$(APPDATAPREFIX)/$(PROJECT).appdata.xml
$(MAKE) -C po uninstall
-include $(wildcard .depend/*.dep)
diff --git a/config.mk b/config.mk
index 947a98c..1770db2 100644
--- a/config.mk
+++ b/config.mk
@@ -45,6 +45,7 @@ WITH_MAGIC ?= 1
PREFIX ?= /usr
MANPREFIX ?= ${PREFIX}/share/man
DESKTOPPREFIX ?= ${PREFIX}/share/applications
+APPDATAPREFIX ?= ${PREFIX}/share/appdata
LIBDIR ?= ${PREFIX}/lib
INCLUDEDIR ?= ${PREFIX}/include
DBUSINTERFACEDIR ?= ${PREFIX}/share/dbus-1/interfaces
diff --git a/data/zathura.appdata.xml b/data/zathura.appdata.xml
new file mode 100644
index 0000000..89bb46c
--- /dev/null
+++ b/data/zathura.appdata.xml
@@ -0,0 +1,33 @@
+
+
+
+
+ zathura.desktop
+ CC0-1.0
+ Zlib
+
+
+ zathura is a highly customizable and functional document viewer. It
+ provides a minimalistic and space saving interface as well as an easy
+ usage that mainly focuses on keyboard interaction. zathura makes it
+ possible to completely view and navigate through documents without using a
+ mouse.
+
+
+ Other features include:
+
+ - SyncTeX forward and backward synchronization support.
+ - Quickmarks and bookmarks.
+ - Automatic document reloading.
+
+
+
+ http://pwmt.org/projects/zathura
+
+ http://pwmt.org/projects/zathura/img/zathura-cover.png
+ http://pwmt.org/projects/zathura/img/zathura-completion.png
+ http://pwmt.org/projects/zathura/img/zathura-follow.png
+ http://pwmt.org/projects/zathura/img/zathura-bookmarks.png
+
+ zathura@lists.pwmt.org
+