[arch-commits] Commit in quiterss/trunk (PKGBUILD install-appdata.patch)

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


    Date: Friday, April 30, 2021 @ 10:17:38
  Author: bgyorgy
Revision: 925331

Minor changes

Added:
  quiterss/trunk/install-appdata.patch
Modified:
  quiterss/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |   14 ++++++++++----
 install-appdata.patch |   32 ++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-30 09:41:12 UTC (rev 925330)
+++ PKGBUILD	2021-04-30 10:17:38 UTC (rev 925331)
@@ -12,9 +12,17 @@
 license=('GPL3')
 depends=('gst-plugins-good' 'qt5-multimedia' 'qt5-webkit')
 makedepends=('qt5-tools')
-source=("https://github.com/QuiteRSS/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha256sums=('d9dffa205a8ec4e7bf00d87183fd94d4a12f045fae04a6efd41d6557827233bc')
+source=("https://github.com/QuiteRSS/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+        'install-appdata.patch')
+sha256sums=('d9dffa205a8ec4e7bf00d87183fd94d4a12f045fae04a6efd41d6557827233bc'
+            '81cc287b8fbd53016a125f210c193c58bcac093cc86ee226c5f4fd23b26188c9')
 
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i ../install-appdata.patch
+  sed -i '/INSTALLS +=/ s/ target1//' QuiteRSS.pro
+}
+
 build() {
   cd $pkgname-$pkgver
   qmake-qt5 CONFIG+=release PREFIX=/usr
@@ -24,6 +32,4 @@
 package() {
   cd $pkgname-$pkgver
   make INSTALL_ROOT="$pkgdir" install
-  install -Dm644 quiterss.appdata.xml "$pkgdir/usr/share/metainfo/quiterss.appdata.xml"
-  rm -r "$pkgdir/usr/share/pixmaps/"
 }

Added: install-appdata.patch
===================================================================
--- install-appdata.patch	                        (rev 0)
+++ install-appdata.patch	2021-04-30 10:17:38 UTC (rev 925331)
@@ -0,0 +1,32 @@
+From ea8b4dce33fd5a74012d14d92bef43e26c6dda66 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor at gmail.com>
+Date: Sat, 17 Apr 2021 21:00:32 +0200
+Subject: [PATCH] Install appdata file
+
+---
+ QuiteRSS.pro | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/QuiteRSS.pro b/QuiteRSS.pro
+index d5088fdf..22dceac5 100644
+--- a/QuiteRSS.pro
++++ b/QuiteRSS.pro
+@@ -287,6 +287,9 @@ unix:!mac {
+ 
+   desktop.files = quiterss.desktop
+   desktop.path =  $$quote($$PREFIX/share/applications)
++  
++  appdata.files = quiterss.appdata.xml
++  appdata.path =  $$quote($$PREFIX/share/metainfo)
+ 
+   target1.files = images/48x48/quiterss.png
+   target1.path =  $$quote($$PREFIX/share/pixmaps)
+@@ -314,7 +317,7 @@ unix:!mac {
+   style.files = style
+   style.path = $$quote($$DATA_DIR)
+ 
+-  INSTALLS += target desktop target1
++  INSTALLS += target desktop appdata target1
+   INSTALLS += icon_16 icon_32 icon_48 icon_64 icon_128 icon_256
+   INSTALLS += translations sound style
+ }



More information about the arch-commits mailing list