summaryrefslogtreecommitdiff
path: root/user/lm_sensors/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/lm_sensors/APKBUILD')
-rw-r--r--user/lm_sensors/APKBUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/user/lm_sensors/APKBUILD b/user/lm_sensors/APKBUILD
index 3b46a20f1..cf8e93f1b 100644
--- a/user/lm_sensors/APKBUILD
+++ b/user/lm_sensors/APKBUILD
@@ -1,6 +1,8 @@
# Maintainer:
pkgname=lm_sensors
+_pkgname=lm-sensors
pkgver=3.5.0
+_pkgver=$(printf '%s' "$pkgver" | tr . -)
pkgrel=0
pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring."
url="https://hwmon.wiki.kernel.org/lm_sensors"
@@ -17,7 +19,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/lm-sensors/lm-sensors/archiv
sensord.confd
sensord.initd
"
-builddir="$srcdir/${pkgname/_/-}-${pkgver//./-}"
+builddir="$srcdir/$_pkgname-$_pkgver"
prepare() {
cd "$builddir"