[Pkg-electronics-devel] Bug#1070082: ponyprog: Add Appstream metainfo announcing HW support

Petter Reinholdtsen pere at hungry.com
Mon Apr 29 22:27:55 BST 2024


Package: ponyprog
Version: 3.1.1+ds-1
Tags: patch

Here is a patch for ponyprog to add Appstream metainfo XML announcing
the hardware handled by this package.  The list of USB IDs in the
modalias list was fetched from udev/rules.d/90-ponyprog.rules.  I was
unsure if the disabled entries should be included, but thought it best
to keep the in the list.

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 USB
IDs are discovered.

diff --git a/debian/copyright b/debian/copyright
index 0115ef0..fc33ab3 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -28,6 +28,29 @@ Copyright: 2015-2017, Winfried Simon
  2017, Mykhailo Lytvyn <mykhailo.lytvyn at tca.at>
 License: LGPL-2.1
 
+Files: debian/ponyprog.metainfo.xml
+Copyright: 2024 Petter Reinholdtsen
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+
 License: GPL-2+
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
diff --git a/debian/ponyprog.install b/debian/ponyprog.install
index 7f876ad..d6bf4f6 100644
--- a/debian/ponyprog.install
+++ b/debian/ponyprog.install
@@ -1,3 +1,4 @@
 icons/ponyprog.svg usr/share/icons/hicolor/scalable/apps
 lib/udev/rules.d/90-ponyprog.rules
 usr
+debian/ponyprog.metainfo.xml usr/share/metainfo
diff --git a/debian/ponyprog.metainfo.xml b/debian/ponyprog.metainfo.xml
new file mode 100644
index 0000000..3cc3bad
--- /dev/null
+++ b/debian/ponyprog.metainfo.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component>
+  <id>com.github.lancos.ponyprog</id>
+  <metadata_license>MIT</metadata_license>
+  <name>ponyprog</name>
+  <summary>Serial device programmer</summary>
+  <description>
+    <p>PonyProg is a serial device programmer software with a user
+    friendly GUI framework available for Windows and Linux. It's
+    purpose is reading and writing every serial device. With PonyProg
+    and SI-Prog you can program Wafercard for SAT, eeprom within GSM,
+    TV or CAR-RADIO.  Furthermore it can be used as a low cost starter
+    kit for PIC and AVR.</p>
+
+    <p>Ponyprog supports AVR, SPI eeprom, AVR micro, 12C bus 8bit
+    eeprom, PIC 16 micro, PIC 12 micro, AT89S micro and SDE2506 eeprom
+    family chips.</p>
+
+    <p>You can open any HEX, e2p, mot, csm, rom, eep, bin files and
+    burn them to uC or PIC. You can even backup the old program on the
+    chip using Ponyprog. Ponyprog enables the user to write, verify
+    and erase data on the microchip.</p>
+
+    <p>Also setting fuse bits and locks using Ponyprog is
+    possible. You can save any HEX file to BIN file or eep file, BIN
+    file to HEX file or MOT file and vice versa so you can use
+    Ponyprog as converter too. Ponyprog offers serial or parallel port
+    programming for uC's. You can even change polarity of control
+    lines without touching the wires using I/O port setup.</p>
+
+    <p>Using Ponyprog together with generic USB2serial adapters is
+    currently not possible! There are plans on upstream to use libusb
+    to add such functionality.</p>
+  </description>
+  <provides>
+    <modalias>usb:v1A86p5523d*</modalias>
+    <modalias>usb:v1A86p7523d*</modalias>
+    <modalias>usb:v1A86p5512d*</modalias>
+    <modalias>usb:v0403p6E38d*</modalias>
+  </provides>
+</component>

-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-electronics-devel mailing list