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

Balló György bgyorgy at archlinux.org
Sun May 23 08:56:03 UTC 2021


    Date: Sunday, May 23, 2021 @ 08:56:03
  Author: bgyorgy
Revision: 943001

upgpkg: psensor 1.2.1-2: Adopt the package, add AppStream metadata file

Added:
  psensor/trunk/psensor.appdata.xml
Modified:
  psensor/trunk/PKGBUILD

---------------------+
 PKGBUILD            |   30 ++++++++++++++++--------------
 psensor.appdata.xml |   34 ++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-23 08:54:07 UTC (rev 943000)
+++ PKGBUILD	2021-05-23 08:56:03 UTC (rev 943001)
@@ -1,4 +1,5 @@
-# Maintainer: Robin Broda <robin at broda.me>
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Robin Broda <robin at broda.me>
 # Contributor: X0rg
 # Contributor: marlock <marlock87 at hotmail.com>
 # Contributor: Diogo Leal <estranho at diogoleal.com>
@@ -5,30 +6,31 @@
 
 pkgname=psensor
 pkgver=1.2.1
-pkgrel=1
-pkgdesc='A graphical hardware temperature monitor for Linux'
+pkgrel=2
+pkgdesc='Graphical hardware temperature monitoring application'
 arch=('x86_64')
 url='https://wpitchoune.net/psensor'
 license=('GPL2')
-depends=('lm_sensors' 'dconf' 'gtk3' 'udisks2' 'curl' 'libgtop' 'libnotify'
-         'libxnvctrl' 'json-c' 'libmicrohttpd')
-makedepends=('help2man')
-source=("https://wpitchoune.net/${pkgname}/files/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('931b8ab654cd708d128e0a659e94049fa69dd33dc354b17ef08e05b8da65588f5c5c1c2a4a42f7341a7990f999152c9aebf3c58484eea38e476034d60ac2ff41')
+depends=('curl' 'gtk3' 'json-c' 'libgtop' 'libmicrohttpd' 'libnotify' 'libxnvctrl' 'lm_sensors'
+         'udisks2')
+source=("https://wpitchoune.net/$pkgname/files/$pkgname-$pkgver.tar.gz"
+        'psensor.appdata.xml')
+sha256sums=('084f785d169f533d3010e50c5933436ed427afc70d41740b762f1db5034833ab'
+            'f8079f06959447af0baf3b00ab74cbf6d9ed55a2995114071189cf501bc55009')
 
 prepare() {
-  find $pkgname-$pkgver -name Makefile* | xargs sed -e 's|-Werror||g' -i # Kill -Werror
+  cd $pkgname-$pkgver
+  sed -i 's/ -Werror//' {src/lib,src/server,tests}/Makefile.{am,in}
 }
 
 build() {
-  cd "${pkgname}-${pkgver}"
-
+  cd $pkgname-$pkgver
   ./configure --prefix=/usr
   make
 }
 
 package() {
-  cd "${pkgname}-${pkgver}"
-
-  make DESTDIR="${pkgdir}/" install
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+  install -Dm644 ../$pkgname.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml"
 }

Added: psensor.appdata.xml
===================================================================
--- psensor.appdata.xml	                        (rev 0)
+++ psensor.appdata.xml	2021-05-23 08:56:03 UTC (rev 943001)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop-application">
+  <id>net.wpitchoune.psensor</id>
+  <launchable type="desktop-id">psensor.desktop</launchable>
+  <name>Psensor</name>
+  <summary>Graphical temperature monitor for Linux</summary>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-2.0</project_license>
+  <developer_name>Jean-Philippe Orsini</developer_name>
+  <description>
+    <p>psensor is a graphical hardware temperature monitor for Linux.</p>
+    <p>It can monitor:</p>
+    <ul>
+      <li>the temperature of the motherboard and CPU sensors (using lm-sensors).</li>
+      <li>the temperature of the NVidia GPUs (using XNVCtrl).</li>
+      <li>the temperature of the Hard Disk Drives (using hddtemp or libatasmart).</li>
+      <li>the rotation speed of the fans (using lm-sensors).</li>
+      <li>the CPU usage (since 0.6.2.10 and using Gtop2).</li>
+    </ul>
+    <p>The application is designed to be simple and easy to use. The CPU and memory consumption are not significant.</p>
+  </description>
+  <screenshots>
+    <screenshot type="default">
+      <image>https://wpitchoune.net/psensor/screenshots/psensor-last.png</image>
+    </screenshot>
+    <screenshot type="default">
+      <image>https://wpitchoune.net/psensor/screenshots/psensor-2011-06-16.png</image>
+    </screenshot>
+  </screenshots>
+  <url type="bugtracker">https://gitlab.com/jeanfi/psensor/-/issues</url>
+  <url type="homepage">https://wpitchoune.net/psensor/</url>
+  <update_contact>jeanfi at gmail.com</update_contact>
+  <translation type="gettext">psensor</translation>
+</component>



More information about the arch-commits mailing list