Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/lm_sensors
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-12-20 10:55:59 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2019-12-20 10:55:59 +0100
commit805a5d24a6a8c8a9cd34fe30fa51d02ec430483f (patch)
treecbdf7137677255b85422bc606dd0ff9f8dfe94c0 /extra/lm_sensors
parent5ce1392ccbadc03b0967ce4bc0e2e6bbcf507fa4 (diff)
extra/lm_sensors: no rrdtools/sensord on i486
Diffstat (limited to 'extra/lm_sensors')
-rw-r--r--extra/lm_sensors/PKGBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/extra/lm_sensors/PKGBUILD b/extra/lm_sensors/PKGBUILD
new file mode 100644
index 00000000..9c1d10c5
--- /dev/null
+++ b/extra/lm_sensors/PKGBUILD
@@ -0,0 +1,22 @@
+# rrdtools needed by sensord needs cairo/pango (not available on i486)
+makedepends=(${makedepends[@]//rrdtool/})
+_oifs="${IFS}"
+IFS=$(printf '\n')
+optdepends=(${optdepends[@]/rrdtool:*/})
+IFS="${_oifs}"
+
+makedepends_i686=('rrdtools')
+makedepends_pentium4=("${makedepends_i686[@]}")
+
+optdepends_i686=('rrdtool: for logging with sensord')
+optdepends_pentium4=("${optdepends_i686[@]}")
+
+if [ "${CARCH}" = 'i486' ]; then
+ eval "$(
+ declare -f package | \
+ sed '
+ s/\(make.*sensord.*\)/#\1/
+ '
+ )"
+fi
+