[arch-commits] Commit in viking/trunk (PKGBUILD viking.appdata.xml)

Balló György bgyorgy at archlinux.org
Mon May 10 06:56:47 UTC 2021


    Date: Monday, May 10, 2021 @ 06:56:47
  Author: bgyorgy
Revision: 929504

Use metainfo file from upstream source

Modified:
  viking/trunk/PKGBUILD
Deleted:
  viking/trunk/viking.appdata.xml

--------------------+
 PKGBUILD           |   11 +++++++----
 viking.appdata.xml |   46 ----------------------------------------------
 2 files changed, 7 insertions(+), 50 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-10 06:53:44 UTC (rev 929503)
+++ PKGBUILD	2021-05-10 06:56:47 UTC (rev 929504)
@@ -12,13 +12,16 @@
 depends=('curl' 'file' 'gpsd' 'gtk3' 'libgexiv2' 'mapnik' 'geoclue' 'liboauth' 'libzip')
 makedepends=('boost' 'docbook-xsl' 'intltool' 'itstool')
 optdepends=('gpsbabel: import and export GPS tracks from various formats')
-options=('!emptydirs')
 changelog=$pkgname.changelog
 source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
-        viking.appdata.xml)
+        https://github.com/viking-gps/viking/blob/$pkgname-$pkgver/org.viking.Viking.appdata.xml)
 sha256sums=('fe4acf3d24121d6f3097d17ea704b42c0336a8f693151886b8b26e308dbfcb3b'
-            'f4df7b51d078c3c992ecdddb41a88766733e0ec50a67954310aa3970a4689e99')
+            'abb98a7e0a3861e850cfc274312d88526e4c810f10ea54050bbf4473feb1b1b3')
 
+prepare() {
+  sed -i 's/org.viking.Viking.desktop/viking.desktop/' org.viking.Viking.appdata.xml
+}
+
 build() {
   cd "${srcdir}"/$pkgname-$pkgver
 
@@ -31,5 +34,5 @@
   cd "${srcdir}"/$pkgname-$pkgver
 
   make DESTDIR="${pkgdir}" install
-  install -Dm644 ../viking.appdata.xml "${pkgdir}"/usr/share/metainfo/viking.appdata.xml
+  install -Dm644 ../org.viking.Viking.appdata.xml "${pkgdir}"/usr/share/metainfo/viking.appdata.xml
 }

Deleted: viking.appdata.xml
===================================================================
--- viking.appdata.xml	2021-05-10 06:53:44 UTC (rev 929503)
+++ viking.appdata.xml	2021-05-10 06:56:47 UTC (rev 929504)
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Copyright 2020 Rob Norris -->
-<component>
-  <!-- About this metadata file -->
-  <!-- https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html -->
-  <id type="desktop">org.viking.Viking</id>
-  <launchable type="desktop-id">viking.desktop</launchable>
-  <metadata_license>CC0-1.0</metadata_license>
-  <name>Viking</name>
-  <project_license>GPL-2.0+</project_license>
-  <summary>GPS Data Editor and Analyzer</summary>
-  <url type="homepage">http://viking.sf.net</url>
-  <url type="bugtracker">https://sourceforge.net/p/viking/bugs/</url>
-  <url type="help">https://sourceforge.net/p/viking/wikiallura/MasterHelp/</url>
-  <url type="translate">https://translations.launchpad.net/viking</url>
-  <description>
-    <p>Viking is a free/open source program to manage GPS data.</p>
-    <p>Viking includes the following features:</p>
-    <ul>
-      <li>Import GPX, TCX, KML and KMZ files</li>
-      <li>Export to GPX and KMZ files</li>
-      <li>Import and Export numerous file types via GPSBabel</li>
-      <li>Create and edit Tracks, Routes and Waypoints</li>
-      <li>Show OpenTopoMap, OpenStreetMap(OSM) Maps and various other Maps from online providers</li>
-      <li>Show Generic Map Images with World File definitions</li>
-      <li>Upload/Download OSM Traces</li>
-      <li>Geotag Images</li>
-      <li>Follow Realtime GPS Position</li>
-      <li>Visualization and Statistics</li>
-      <li>Digitial Elevation Model (DEM) Support</li>
-      <li>OSRM Routing Support</li>
-      <li>Generate Maps (using Mapnik)</li>
-    </ul>
-  </description>
-  <screenshots>
-    <screenshot type="default">
-      <image>https://a.fsdn.com/con/app/proj/viking/screenshots/291461.jpg</image>
-    </screenshot>
-    <screenshot>
-      <image>https://a.fsdn.com/con/app/proj/viking/screenshots/291463.jpg</image>
-    </screenshot>
-  </screenshots>
-  <update_contact>rw_norris_AT_hotmail.com</update_contact>
-  <translation type="gettext">viking</translation>
-  <content_rating type="oars-1.1"/>
-</component>



More information about the arch-commits mailing list