Commit 401012ba authored by Natanael Copa's avatar Natanael Copa
Browse files

main/lm_sensors: move .so to -dev package

ref #384
parent a74fc1db
# 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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment