[arch-commits] Commit in lm_sensors/trunk (PKGBUILD)

Laurent Carlier lcarlier at archlinux.org
Thu Feb 18 15:26:45 UTC 2021


    Date: Thursday, February 18, 2021 @ 15:26:44
  Author: lcarlier
Revision: 408495

upgpkg: lm_sensors 1:3.6.0.r41.g31d1f125-1: fix package version (FS#69693)

Modified:
  lm_sensors/trunk/PKGBUILD

----------+
 PKGBUILD |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-18 14:42:13 UTC (rev 408494)
+++ PKGBUILD	2021-02-18 15:26:44 UTC (rev 408495)
@@ -2,10 +2,11 @@
 # Contributor: Eric Bélanger
 
 pkgname=lm_sensors
-pkgver=3.6.0.r5313.g31d1f125
+pkgver=3.6.0.r41.g31d1f125
 _commit=31d1f125d8076f1c8c8f3224b31d240e6e6a1763
 #_pkgver=${pkgver//./-}
 pkgrel=1
+epoch=1
 pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring"
 arch=('x86_64')
 url="https://hwmon.wiki.kernel.org/lm_sensors"
@@ -15,7 +16,7 @@
 makedepends=('rrdtool' 'perl' 'git')
 provides=('libsensors.so')
 backup=('etc/sensors3.conf' 'etc/healthd.conf' 'etc/conf.d/sensord')
-#source=(https://github.com/lm-sensors/lm-sensors/archive/V${_pkgver}.tar.gz
+#source=(lm_sensors-${pkgver}.tar.gz::https://github.com/lm-sensors/lm-sensors/archive/V${_pkgver}.tar.gz
 source=("git+https://github.com/groeck/lm-sensors.git#commit=${_commit}"
 	healthd healthd.conf healthd.service sensord.conf)
 sha256sums=('SKIP'
@@ -28,7 +29,7 @@
 pkgver() {
   cd "${srcdir}"/lm-sensors*
 
-  echo 3.6.0.r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)
+  git describe --long --tags | sed 's/V//;s/\([^-]*-g\)/r\1/;s/-/./g'
 }
 
 prepare() {



More information about the arch-commits mailing list