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> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lm_sensors pkgname=lm_sensors
pkgver=3.1.2 pkgver=3.1.2
pkgrel=1 pkgrel=2
pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring." pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring."
url="http://www.lm-sensors.org/" url="http://www.lm-sensors.org/"
license="GPL" license="GPL"
...@@ -18,21 +18,27 @@ source="http://dl.lm-sensors.org/lm-sensors/releases/$pkgname-$pkgver.tar.bz2 ...@@ -18,21 +18,27 @@ source="http://dl.lm-sensors.org/lm-sensors/releases/$pkgname-$pkgver.tar.bz2
" "
_builddir="$srcdir"/$pkgname-$pkgver _builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
prepare() {
cd "$_builddir"
sed -i -e 's:^# \(PROG_EXTRA\):\1:' Makefile sed -i -e 's:^# \(PROG_EXTRA\):\1:' Makefile
# Respect LDFLAGS # Respect LDFLAGS
sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' Makefile sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' Makefile
sed -i -e 's/\$(LIBSHSONAME) -o/$(LIBSHSONAME) \$(LDFLAGS) -o/g' \ sed -i -e 's/\$(LIBSHSONAME) -o/$(LIBSHSONAME) \$(LDFLAGS) -o/g' \
lib/Module.mk 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 for i in ../*.patch; do
msg "Applying $i" msg "Applying $i"
patch -p1 < $i || return 1 patch -p1 < $i || return 1
done done
}
build() {
cd "$_builddir"
export CFLAGS="$CFLAGS -fno-stack-protector"
make PREFIX=/usr user || return 1 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