[arch-commits] Commit in appstream-generator/trunk (2 files)

Antonio Rojas arojas at archlinux.org
Sat Oct 15 19:32:22 UTC 2016


    Date: Saturday, October 15, 2016 @ 19:32:21
  Author: arojas
Revision: 192315

Demote 'metainfo-no-summary' errors to warnings (FS#51264)

Added:
  appstream-generator/trunk/metainfo-no-summary-warning.patch
Modified:
  appstream-generator/trunk/PKGBUILD

-----------------------------------+
 PKGBUILD                          |   11 ++++++++---
 metainfo-no-summary-warning.patch |   11 +++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-15 19:25:33 UTC (rev 192314)
+++ PKGBUILD	2016-10-15 19:32:21 UTC (rev 192315)
@@ -3,7 +3,7 @@
 
 pkgname=appstream-generator
 pkgver=0.6.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A fast AppStream metadata generator"
 arch=(i686 x86_64)
 url="https://github.com/ximion/appstream-generator"
@@ -10,8 +10,9 @@
 license=(GPL3)
 depends=(appstream libarchive librsvg lmdb)
 makedepends=(dmd meson ninja mustache-d curl)
-source=("https://github.com/ximion/appstream-generator/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz")
-sha256sums=('68f538f2163004b8e2171c694233af401c2cd47a9ea1472265753a48b20600e3')
+source=("https://github.com/ximion/appstream-generator/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz" metainfo-no-summary-warning.patch)
+sha256sums=('68f538f2163004b8e2171c694233af401c2cd47a9ea1472265753a48b20600e3'
+            'ca060c10da22acaf572c78917b7a9587fa989757bfed26f468280ce1f078dc81')
 
 prepare() {
   mkdir -p build
@@ -18,6 +19,10 @@
 
 # fix build
   sed -e 's/core.sys.linux.stdio/core.sys.posix.stdio/' -i $pkgname-$pkgver/src/asgen/utils.d
+
+# Don't treat 'metainfo-no-summary' hints as errors, it excludes too many packages
+  cd $pkgname-$pkgver
+  patch -p1 -i ../metainfo-no-summary-warning.patch
 }
 
 build() {

Added: metainfo-no-summary-warning.patch
===================================================================
--- metainfo-no-summary-warning.patch	                        (rev 0)
+++ metainfo-no-summary-warning.patch	2016-10-15 19:32:21 UTC (rev 192315)
@@ -0,0 +1,11 @@
+--- appstream-generator-0.6.0/data/asgen-hints.json.orig	2016-10-15 21:12:11.009366464 +0200
++++ appstream-generator-0.6.0/data/asgen-hints.json	2016-10-15 21:12:31.606032759 +0200
+@@ -140,7 +140,7 @@
+            "has a <code>Comment=</code> field set.<br/>",
+            "More information can be found in the <a href=\"http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html\">Desktop Entry specification</a>",
+            "and the <a href=\"https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Application.html#tag-dapp-summary\">MetaInfo specification</a>."],
+-  "severity": "error"
++  "severity": "warning"
+ },
+ 
+ "metainfo-duplicate-id": {



More information about the arch-commits mailing list