Balló György pushed to branch main at Arch Linux / Packaging / Packages / 
psensor


Commits:
c6037028 by Lubosz Sarnecki at 2025-12-13T08:49:37+01:00
Switch to upstream Gitlab.

* Switch to git source
  * Call autoreconf
  * Drop modifying .in files
* Apply upstream patches for microhttpd >= 0.9.71
* Build on one thread to avoid race related to Tpo files.
* Add help2man and git to makedepends.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -2,9 +2,11 @@ pkgbase = psensor
        pkgdesc = Graphical hardware temperature monitoring application
        pkgver = 1.2.1
        pkgrel = 4
-       url = https://wpitchoune.net/psensor
+       url = https://gitlab.com/jeanfi/psensor
        arch = x86_64
        license = GPL2
+       makedepends = git
+       makedepends = help2man
        depends = curl
        depends = gtk3
        depends = json-c
@@ -14,9 +16,9 @@ pkgbase = psensor
        depends = libxnvctrl
        depends = lm_sensors
        depends = udisks2
-       source = https://wpitchoune.net/psensor/files/psensor-1.2.1.tar.gz
+       source = git+https://gitlab.com/jeanfi/psensor.git#tag=v1.2.1
        source = psensor.appdata.xml
-       sha256sums = 
084f785d169f533d3010e50c5933436ed427afc70d41740b762f1db5034833ab
+       sha256sums = 
49ed8eae38ad978e277008d3f42c1a38131fb024b15aa0d3221ecdec5f54718d
        sha256sums = 
f8079f06959447af0baf3b00ab74cbf6d9ed55a2995114071189cf501bc55009
 
 pkgname = psensor


=====================================
PKGBUILD
=====================================
@@ -3,34 +3,47 @@
 # Contributor: X0rg
 # Contributor: marlock <[email protected]>
 # Contributor: Diogo Leal <[email protected]>
+# Contributor: Lubosz Sarnecki <[email protected]>
 
 pkgname=psensor
 pkgver=1.2.1
 pkgrel=4
 pkgdesc='Graphical hardware temperature monitoring application'
 arch=('x86_64')
-url='https://wpitchoune.net/psensor'
+url='https://gitlab.com/jeanfi/psensor'
 license=('GPL2')
 depends=('curl' 'gtk3' 'json-c' 'libgtop' 'libmicrohttpd' 'libnotify' 
'libxnvctrl' 'lm_sensors'
          'udisks2')
-source=("https://wpitchoune.net/$pkgname/files/$pkgname-$pkgver.tar.gz";
+makedepends=('git' 'help2man')
+source=("git+https://gitlab.com/jeanfi/${pkgname}.git#tag=v${pkgver}";
         'psensor.appdata.xml')
-sha256sums=('084f785d169f533d3010e50c5933436ed427afc70d41740b762f1db5034833ab'
+sha256sums=('49ed8eae38ad978e277008d3f42c1a38131fb024b15aa0d3221ecdec5f54718d'
             'f8079f06959447af0baf3b00ab74cbf6d9ed55a2995114071189cf501bc55009')
 
 prepare() {
-  cd $pkgname-$pkgver
-  sed -i 's/ -Werror//' {src/lib,src/server,tests}/Makefile.{am,in}
+  cd $pkgname
+  sed -i 's/ -Werror//' {src/lib,src/server,tests}/Makefile.am
+
+  # Fix -Werror=incompatible-pointer-types with microhttpd >= 0.9.71
+  # See https://gitlab.com/jeanfi/psensor/-/merge_requests/14
+  git cherry-pick -n 4088dc47dc37e1c075479505a2b190e174ad8797
+  git cherry-pick -n 78f38f9ea3711bcc3cdda288d2131c3ca09eaa52
+  git cherry-pick -n ad8a1e3434d3e7685a03e5b9b990d4e4fdb0e7be
+
+  autoreconf -ifv
 }
 
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   ./configure --prefix=/usr
-  make
+
+  # Avoid parallel building
+  # See https://gitlab.com/jeanfi/psensor/-/merge_requests/31
+  make -j1
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="$pkgdir" install
   install -Dm644 ../$pkgname.appdata.xml 
"$pkgdir/usr/share/metainfo/$pkgname.appdata.xml"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/psensor/-/commit/c60370284a1a4ea3ba62cda847116dfdb0f436ff

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/psensor/-/commit/c60370284a1a4ea3ba62cda847116dfdb0f436ff
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to