summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-07-15 12:22:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-07-15 12:22:10 +0000
commit401012ba5482e54175384871b4a9cbe9ad311173 (patch)
treeda04c5d6507aa0fe376bcc1b2098fb73cf47afc6
parenta74fc1db1dc48e537ca93fdb0333b4a8db6da90c (diff)
downloadaports-401012ba5482e54175384871b4a9cbe9ad311173.tar.bz2
aports-401012ba5482e54175384871b4a9cbe9ad311173.tar.xz
main/lm_sensors: move .so to -dev package
ref #384
-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 d587b1b3a..320726584 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
}