Package: viking Version: 1.10-2 Tags: patch User: [email protected] Usertags: appstream-modalias
Here is a patch to add Appstream metainfo XML announcing the hardware handled by this package. Including this information in the package will ensure programs mapping hardware to packages using Appstream information, like the isenkram package, will know that this package is useful on machines where the hardware is discovered. The appstream metadata file can be checked using this command after package build: appstreamcli validate-tree --no-net --explain debian/viking I also changed both homepage URL instances to https, to avoid some warnings. diff --git a/debian/control b/debian/control index 1b2ba529..d37832f2 100644 --- a/debian/control +++ b/debian/control @@ -30,7 +30,7 @@ Build-Depends: xsltproc, yelp-tools, Standards-Version: 3.8.4 -Homepage: http://viking.sf.net +Homepage: https://viking.sf.net Vcs-Git: https://salsa.debian.org/debian/viking.git Vcs-Browser: https://salsa.debian.org/debian/viking diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch new file mode 100644 index 00000000..9e1edc79 --- /dev/null +++ b/debian/patches/1000-appstream-metainfo.patch @@ -0,0 +1,69 @@ +Description: Added AppStream metainfo XML with hardware provide info. + This allow isenkram to propose this package when the relevant hardware is + present. +Author: Petter Reinholdtsen +Forwarded: no +Last-Update: 2024-08-17 +--- +Index: viking-salsa/Makefile.am +=================================================================== +--- viking-salsa.orig/Makefile.am 2024-08-17 10:10:36.291192002 +0200 ++++ viking-salsa/Makefile.am 2024-08-17 10:10:36.279191892 +0200 +@@ -19,8 +19,12 @@ + viking.spec \ + mingw-viking.spec \ + mingw64-viking.spec \ ++ net.sf.viking.metainfo.xml \ + $(INTLTOOL) + ++dist_metainfo_DATA = net.sf.viking.metainfo.xml ++metainfodir = $(datarootdir)/metainfo ++ + .PHONY: generate-changelog + generate-changelog: + if test -d $(top_srcdir)/.git; then \ +Index: viking-salsa/net.sf.viking.metainfo.xml +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ viking-salsa/net.sf.viking.metainfo.xml 2024-08-17 10:11:56.503926735 +0200 +@@ -0,0 +1,40 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component> ++ <id>net.sf.viking</id> ++ <metadata_license>MIT</metadata_license> ++ <name>viking</name> ++ <summary>GPS data editor, analyzer and viewer</summary> ++ <description> ++ <p>Viking aims to be easy to use, yet powerful in accomplishing a ++ wide variety of GPS related tasks. It uses a hierarchical layering ++ system to organize GPS data, maps, and other layer types with ++ spatial data, such as coordinate lines.</p> ++ ++ <p>Some of the things you can use Viking for are:</p> ++ <ul> ++ <li>Uploading and downloading waypoints, tracks to/from GPS.</li> ++ <li>Realtime GPS tracking and track recording.</li> ++ <li>Import and export of gpx files.</li> ++ <li>Preparing tracks and waypoints for trips using maps from ++ services such as OpenStreetmap and Terraserver. You only need to ++ upload the data to your GPS before you leave. The maps together ++ with your tracks and waypoints can also be printed and used ++ during the trip.</li> ++ <li>After trips, tracks and waypoints from GPS can be ++ downloaded, stored, managed and reused in later trips.</li> ++ <li>Analyzing OHV and hiking trips, understanding where you went ++ and how far you were from something.</li> ++ <li>Making waypoints and tracks to follow to easily get ++ someplace you've never been before or don't have GPS data for ++ but Terraserver maps exist for it.</li> ++ <li>Making maps with coordinate lines.</li> ++ <li>Analyzing speed at different places, adding waypoints where ++ you forgot to mark one but did slow down or stop.</li> ++ </ul> ++ </description> ++ <url type="homepage">https://viking.sf.net</url> ++ <launchable type="desktop-id">viking.desktop</launchable> ++ <provides> ++ <modalias>usb:v091Ep0003d*</modalias> ++ </provides> ++</component> diff --git a/debian/patches/series b/debian/patches/series index 890fe559..286cd8cc 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ fix_build_on_hurd no-doc-dir tweak-test-for-i386.patch a68acdedbe7421e9980b6611229f92f5be2b65fb.patch +1000-appstream-metainfo.patch -- Happy hacking Petter Reinholdtsen

