aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/lm_sensors/APKBUILD14
1 files changed, 10 insertions, 4 deletions
diff --git a/main/lm_sensors/APKBUILD b/main/lm_sensors/APKBUILD
index d587b1b3a1..320726584f 100644
--- a/main/lm_sensors/APKBUILD
+++ b/main/lm_sensors/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lm_sensors
pkgver=3.1.2
-pkgrel=1
+pkgrel=2
pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring."
url="http://www.lm-sensors.org/"
license="GPL"
@@ -18,21 +18,27 @@ source="http://dl.lm-sensors.org/lm-sensors/releases/$pkgname-$pkgver.tar.bz2
"
_builddir="$srcdir"/$pkgname-$pkgver
-build() {
- cd "$_builddir"
+prepare() {
+ cd "$_builddir"
sed -i -e 's:^# \(PROG_EXTRA\):\1:' Makefile
# Respect LDFLAGS
sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' Makefile
sed -i -e 's/\$(LIBSHSONAME) -o/$(LIBSHSONAME) \$(LDFLAGS) -o/g' \
lib/Module.mk
- export CFLAGS="$CFLAGS -fno-stack-protector"
+ # do not check for libiconv in ldconfig cache
+ sed -i -e 's/^LIBICONV.*/LIBICONV ?=/' prog/sensors/Module.mk || return 1
for i in ../*.patch; do
msg "Applying $i"
patch -p1 < $i || return 1
done
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS="$CFLAGS -fno-stack-protector"
make PREFIX=/usr user || return 1
}