Blame 4Pane-HEAD-0003-Add-an-appdata-file-see-https-sourceforge.net-p-four.patch

a66d456
From 3b55430a83dd521dbc7633b3416c2cb54849f243 Mon Sep 17 00:00:00 2001
a66d456
From: dghart <dghart@users.sourceforge.net>
a66d456
Date: Thu, 18 Dec 2014 12:06:26 +0000
a66d456
Subject: [PATCH 3/4] Add an appdata file: see
a66d456
 https://sourceforge.net/p/fourpane/feature-requests/10/
a66d456
a66d456
---
a66d456
 .build/4Pane.bkl  | 15 ++++++++++++---
a66d456
 4Pane.appdata.xml | 28 ++++++++++++++++++++++++++++
a66d456
 Makefile.in       |  4 ++++
a66d456
 3 files changed, 44 insertions(+), 3 deletions(-)
a66d456
 create mode 100644 4Pane.appdata.xml
a66d456
a66d456
diff --git a/.build/4Pane.bkl b/.build/4Pane.bkl
a66d456
index 6ec38d9..8b184da 100755
a66d456
--- a/.build/4Pane.bkl
a66d456
+++ b/.build/4Pane.bkl
a66d456
@@ -153,6 +153,12 @@
a66d456
 								ln -fs 4Pane $(DESTDIR)$(BINDIR)/4pane ;\
a66d456
 							fi;
a66d456
 				</command>
a66d456
+		
a66d456
+				<command> 
a66d456
+							@if test -d /usr/share/appdata/ ; then \
a66d456
+								cp  $(DESTDIR)4Pane.appdata.xml /usr/share/appdata/ ;\
a66d456
+							fi;
a66d456
+				</command>
a66d456
     
a66d456
 				<command>
a66d456
 							@if test $(desktop) = yes || test $(desktop) = install_only ; then \
a66d456
@@ -164,18 +170,21 @@
a66d456
 				</command>
a66d456
 				</modify-target>
a66d456
 
a66d456
-		
a66d456
+		
a66d456
 				<modify-target target="uninstall">
a66d456
   					<command>
a66d456
 										@if test $(symlink) = yes || test $(symlink) = uninstall_only; then \
a66d456
 												rm -f $(DESTDIR)$(BINDIR)/4pane ;\
a66d456
 										fi;
a66d456
-							</command>
a66d456
+						</command>
a66d456
+  					<command>
a66d456
+                    @rm -f /usr/share/appdata/4Pane.appdata.xml ;
a66d456
+            </command>
a66d456
   					<command>
a66d456
 										@if test $(desktop) = yes || test $(desktop) = uninstall_only; then \
a66d456
 												rm -f ~/Desktop/4Pane.desktop ;\
a66d456
 										fi;				
a66d456
-							</command>
a66d456
+						</command>
a66d456
 				</modify-target>
a66d456
     </my_exe>
a66d456
 
a66d456
diff --git a/4Pane.appdata.xml b/4Pane.appdata.xml
a66d456
new file mode 100644
a66d456
index 0000000..918ecf5
a66d456
--- /dev/null
a66d456
+++ b/4Pane.appdata.xml
a66d456
@@ -0,0 +1,28 @@
a66d456
+
a66d456
+
a66d456
+<component type="desktop">
a66d456
+ <id>4Pane.desktop</id>
a66d456
+ <metadata_license>CC0-1.0</metadata_license>
a66d456
+ <project_license>GPL-3.0</project_license>
a66d456
+ <name>4Pane</name>
a66d456
+ <summary>File manager</summary>
a66d456
+ <description>
a66d456
+  

a66d456
+   4Pane is a highly configurable Linux filemanager. It has dual twin-panes,
a66d456
+   each of which has a directory tree-view pane and a detailed-list pane for
a66d456
+   files.
a66d456
+  

a66d456
+  

a66d456
+   In addition to standard file manager things, it offers multiple undo and redo
a66d456
+    of most operations (including deletions), archive management including 
a66d456
+    'virtual browsing' inside archives, multiple renaming/duplication of files,
a66d456
+    a terminal emulator and user-defined tools.
a66d456
+  

a66d456
+ </description>
a66d456
+ <screenshots>
a66d456
+  <screenshot type="default">
a66d456
+   <image>http://www.4Pane.co.uk/4Pane624x351.png</image>
a66d456
+  </screenshot>
a66d456
+ </screenshots>
a66d456
+ <url type="homepage">http://www.4pane.co.uk</url>
a66d456
+</component>
a66d456
diff --git a/Makefile.in b/Makefile.in
a66d456
index 7a7b8b2..19ae920 100644
a66d456
--- a/Makefile.in
a66d456
+++ b/Makefile.in
a66d456
@@ -106,6 +106,9 @@ install: install_4Pane
a66d456
 	@if test $(symlink) = yes || test $(symlink) = install_only ; then \
a66d456
 	ln -fs 4Pane $(DESTDIR)$(bindir)/4pane ;\
a66d456
 	fi;
a66d456
+	@if test -d /usr/share/appdata/ ; then \
a66d456
+	cp  $(DESTDIR)4Pane.appdata.xml /usr/share/appdata/ ;\
a66d456
+	fi;
a66d456
 	@if test $(desktop) = yes || test $(desktop) = install_only ; then \
a66d456
 	if test -d ~/Desktop/ ; then \
a66d456
 	cp -up rc/4Pane.desktop ~/Desktop/4Pane.desktop ;\
a66d456
@@ -142,6 +145,7 @@ uninstall: uninstall_4Pane
a66d456
 	@if test $(symlink) = yes || test $(symlink) = uninstall_only; then \
a66d456
 	rm -f $(DESTDIR)$(bindir)/4pane ;\
a66d456
 	fi;
a66d456
+	@rm -f /usr/share/appdata/4Pane.appdata.xml ;
a66d456
 	@if test $(desktop) = yes || test $(desktop) = uninstall_only; then \
a66d456
 	rm -f ~/Desktop/4Pane.desktop ;\
a66d456
 	fi;
a66d456
-- 
a66d456
2.1.0
a66d456