summaryrefslogtreecommitdiff
path: root/sysui
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-10-01 14:26:03 +0200
committerMichael Stahl <mstahl@redhat.com>2013-10-01 14:28:30 +0200
commit9663478df85655a3581bc97193a0ef92df1eae20 (patch)
tree4aaf4464fb092e10edc419f59254da2dff895eb2 /sysui
parentceb9e098fc6efcfb7e024057bfa46aa06a295d00 (diff)
fdo#69210: sysui: add AppData to system-integration RPM/DEB
Change-Id: Ifabf7965c922d7f719201cea39827acbccb57937
Diffstat (limited to 'sysui')
-rw-r--r--sysui/CustomTarget_share.mk1
-rwxr-xr-xsysui/desktop/freedesktop/freedesktop-menus.spec1
-rwxr-xr-xsysui/desktop/share/create_tree.sh5
3 files changed, 7 insertions, 0 deletions
diff --git a/sysui/CustomTarget_share.mk b/sysui/CustomTarget_share.mk
index 278399519e6c..d191d8def91c 100644
--- a/sysui/CustomTarget_share.mk
+++ b/sysui/CustomTarget_share.mk
@@ -181,6 +181,7 @@ $(share_WORKDIR)/%/create_tree.sh: $(share_SRCDIR)/share/create_tree.sh $(share_
echo "PREFIX=$(UNIXFILENAME.$*)" >> $@
echo "ICON_PREFIX=$(UNIXFILENAME.$*)" >> $@
echo "ICON_SOURCE_DIR=$(SRCDIR)/sysui/desktop/icons" >> $@
+ echo "APPDATA_SOURCE_DIR=$(SRCDIR)/sysui/desktop/appstream-appdata" >> $@
echo "PRODUCTVERSION=$(PRODUCTVERSION)" >> $@
cat $< >> $@
chmod 774 $@
diff --git a/sysui/desktop/freedesktop/freedesktop-menus.spec b/sysui/desktop/freedesktop/freedesktop-menus.spec
index 5a1042b5ba92..021725966050 100755
--- a/sysui/desktop/freedesktop/freedesktop-menus.spec
+++ b/sysui/desktop/freedesktop/freedesktop-menus.spec
@@ -413,3 +413,4 @@ done
/usr/share/icons/locolor/*/apps/*png
/usr/share/icons/locolor/*/mimetypes/*png
/usr/share/mime/packages/*
+/usr/share/appdata/*
diff --git a/sysui/desktop/share/create_tree.sh b/sysui/desktop/share/create_tree.sh
index 606f1a5bc9ae..0843f2e72b12 100755
--- a/sysui/desktop/share/create_tree.sh
+++ b/sysui/desktop/share/create_tree.sh
@@ -86,3 +86,8 @@ for i in `cat launcherlist`; do
ln -sf "${office_root}/share/xdg/${i}" "${DESTDIR}/usr/share/applications/${PREFIX}-${i}"
done
+mkdir -p "${DESTDIR}/usr/share/appdata"
+for i in base calc draw impress writer; do
+ cp "${APPDATA_SOURCE_DIR}/libreoffice-${i}.appdata.xml" "${DESTDIR}/usr/share/appdata/${PREFIX}-${i}.appdata.xml"
+done
+