[arch-commits] Commit in phototonic/trunk (3 files)

Balló György bgyorgy at archlinux.org
Fri Apr 30 17:51:26 UTC 2021


    Date: Friday, April 30, 2021 @ 17:51:26
  Author: bgyorgy
Revision: 925387

Use upstreame patch for AppStream metadata file

Added:
  phototonic/trunk/appstream.patch
Modified:
  phototonic/trunk/PKGBUILD
Deleted:
  phototonic/trunk/phototonic.appdata.xml

------------------------+
 PKGBUILD               |    6 ++--
 appstream.patch        |   61 +++++++++++++++++++++++++++++++++++++++++++++++
 phototonic.appdata.xml |   27 --------------------
 3 files changed, 64 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-30 17:36:53 UTC (rev 925386)
+++ PKGBUILD	2021-04-30 17:51:26 UTC (rev 925387)
@@ -12,12 +12,13 @@
 license=('GPL3')
 depends=('exiv2' 'hicolor-icon-theme' 'qt5-imageformats' 'qt5-svg')
 source=("https://github.com/oferkv/phototonic/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
-        'phototonic.appdata.xml')
+        'appstream.patch')
 sha256sums=('a8b2dbc81750efabb65a4732b1704641afd4a4f772ef9c90817871ca2a52f5ef'
-            '42a79f018c2909651c8d65a0008fc94350e72f95ec6c76bd4f6c821d37c17e1b')
+            'af7b0768c5752297e4a629f54540475f5db0c55bd4a0cdfcdb816343274ecdd9')
 
 prepare() {
   cd $pkgname-$pkgver
+  patch -Np1 -i ../appstream.patch
   sed -i '/INSTALLS +=/ s/ iconPixmaps//' phototonic.pro
 }
 
@@ -30,5 +31,4 @@
 package() {
   cd $pkgname-$pkgver
   make INSTALL_ROOT="$pkgdir" install
-  install -Dm644 ../$pkgname.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml"
 }

Added: appstream.patch
===================================================================
--- appstream.patch	                        (rev 0)
+++ appstream.patch	2021-04-30 17:51:26 UTC (rev 925387)
@@ -0,0 +1,61 @@
+From 9b1a04ceb247fb43d3e8461212252c5d1ef0574a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor at gmail.com>
+Date: Fri, 30 Apr 2021 00:31:32 +0200
+Subject: [PATCH] Add AppStream metadata file
+
+It's useful for software catalogs to display detailed information about this application.
+---
+ phototonic.appdata.xml | 27 +++++++++++++++++++++++++++
+ phototonic.pro         |  5 ++++-
+ 2 files changed, 31 insertions(+), 1 deletion(-)
+ create mode 100644 phototonic.appdata.xml
+
+diff --git a/phototonic.appdata.xml b/phototonic.appdata.xml
+new file mode 100644
+index 0000000..09afe43
+--- /dev/null
++++ b/phototonic.appdata.xml
+@@ -0,0 +1,27 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component type="desktop">
++  <id>phototonic.desktop</id>
++  <metadata_license>CC0-1.0</metadata_license>
++  <project_license>GPL-3.0+</project_license>
++  <name>Phototonic</name>
++  <summary>View photos on your computer</summary>
++  <description>
++    <p>Phototonic is an image viewer and organizer built with Qt and Exiv2. Features:</p>
++    <ul>
++      <li>Support for common image formats and GIF animation</li>
++      <li>Supports tagging images, and filtering images by tags (IPTC)</li>
++      <li>Browse thumbnails recursively down a folder tree</li>
++      <li>Dynamic thumbnails loading</li>
++      <li>Image transformation and color manipulation</li>
++      <li>Display image information and metadata</li>
++      <li>Does not depend on any desktop environment</li>
++    </ul>
++  </description>
++  <screenshots>
++    <screenshot type="default">
++      <image>https://raw.githubusercontent.com/oferkv/phototonic/master/images/screenshot.jpg</image>
++    </screenshot>
++  </screenshots>
++  <url type="homepage">https://github.com/oferkv/phototonic</url>
++  <url type="bugtracker">https://github.com/oferkv/phototonic/issues</url>
++</component>
+diff --git a/phototonic.pro b/phototonic.pro
+index 6e4b1bf..0dcc50a 100644
+--- a/phototonic.pro
++++ b/phototonic.pro
+@@ -68,7 +68,10 @@ iconPixmaps.path = /usr/share/pixmaps
+ desktop.files = phototonic.desktop
+ desktop.path = /usr/share/applications
+ 
+-INSTALLS += target icon icon16 iconPixmaps desktop
++metainfo.files = phototonic.appdata.xml
++metainfo.path = /usr/share/metainfo
++
++INSTALLS += target icon icon16 iconPixmaps desktop metainfo
+ 
+ TRANSLATIONS = 	translations/phototonic_en.ts \
+ 		translations/phototonic_pl.ts \

Deleted: phototonic.appdata.xml
===================================================================
--- phototonic.appdata.xml	2021-04-30 17:36:53 UTC (rev 925386)
+++ phototonic.appdata.xml	2021-04-30 17:51:26 UTC (rev 925387)
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<component type="desktop">
-  <id>phototonic.desktop</id>
-  <metadata_license>CC0-1.0</metadata_license>
-  <project_license>GPL-3.0+</project_license>
-  <name>Phototonic</name>
-  <summary>View photos on your computer</summary>
-  <description>
-    <p>Phototonic is an image viewer and organizer built with Qt and Exiv2. Features:</p>
-    <ul>
-      <li>Support for common image formats and GIF animation</li>
-      <li>Supports tagging images, and filtering images by tags (IPTC)</li>
-      <li>Browse thumbnails recursively down a folder tree</li>
-      <li>Dynamic thumbnails loading</li>
-      <li>Image transformation and color manipulation</li>
-      <li>Display image information and metadata</li>
-      <li>Does not depend on any desktop environment</li>
-    </ul>
-  </description>
-  <screenshots>
-    <screenshot type="default">
-      <image>https://raw.githubusercontent.com/oferkv/phototonic/master/images/screenshot.jpg</image>
-    </screenshot>
-  </screenshots>
-  <url type="homepage">https://github.com/oferkv/phototonic</url>
-  <url type="bugtracker">https://github.com/oferkv/phototonic/issues</url>
-</component>



More information about the arch-commits mailing list