summaryrefslogtreecommitdiff
path: root/user/lm_sensors
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-06 00:11:58 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-06 00:11:58 +0000
commit0c5b26444fd47efa86c29f8a0661ab601f6a8ddd (patch)
treea887ceec12b79929fc620a2dcdc223b4fc7da22d /user/lm_sensors
parentc16b7147097e6052bb643518cb07b205d187b12f (diff)
downloadpackages-0c5b26444fd47efa86c29f8a0661ab601f6a8ddd.tar.gz
packages-0c5b26444fd47efa86c29f8a0661ab601f6a8ddd.tar.bz2
packages-0c5b26444fd47efa86c29f8a0661ab601f6a8ddd.tar.xz
packages-0c5b26444fd47efa86c29f8a0661ab601f6a8ddd.zip
user/*: Modernise / fix syntax / deps / mark no-check where applicable
Diffstat (limited to 'user/lm_sensors')
-rw-r--r--user/lm_sensors/APKBUILD16
1 files changed, 5 insertions, 11 deletions
diff --git a/user/lm_sensors/APKBUILD b/user/lm_sensors/APKBUILD
index bf7ed865c..19286ae5f 100644
--- a/user/lm_sensors/APKBUILD
+++ b/user/lm_sensors/APKBUILD
@@ -22,7 +22,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/lm-sensors/lm-sensors/archiv
builddir="$srcdir/$_pkgname-$_pkgver"
prepare() {
- cd "$builddir"
+ default_prepare
+
sed -i -e 's:^# \(PROG_EXTRA\):\1:' Makefile
# Respect LDFLAGS
sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' Makefile
@@ -31,39 +32,32 @@ prepare() {
# do not check for libiconv in ldconfig cache
sed -i -e 's/^LIBICONV.*/LIBICONV ?=/' prog/sensors/Module.mk
-
- default_prepare
}
build() {
- cd "$builddir"
export CFLAGS="$CFLAGS -fno-stack-protector"
make PREFIX=/usr user
}
package() {
- cd "$builddir"
make PROG_EXTRA:=sensord user_install \
PREFIX=/usr \
MANDIR=/usr/share/man \
DESTDIR="$pkgdir"
- cd "$srcdir"
- install -Dm755 fancontrol.initd "$pkgdir"/etc/init.d/fancontrol
+ install -Dm755 "$srcdir"/fancontrol.initd "$pkgdir"/etc/init.d/fancontrol
}
detect() {
depends="perl"
pkgdesc="Detection/migration scripts for lm_sensors"
mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/sbin
- cd "$pkgdir"
- mv usr/bin/sensors-conf-convert "$subpkgdir"/usr/bin/
- mv usr/sbin/sensors-detect "$subpkgdir"/usr/bin/
+ mv "$pkgdir"/usr/bin/sensors-conf-convert "$subpkgdir"/usr/bin/
+ mv "$pkgdir"/usr/sbin/sensors-detect "$subpkgdir"/usr/bin/
}
sensord() {
pkgdesc="sensord daemon"
- cd "$builddir"
mkdir -p "$subpkgdir"/usr/sbin
mv "$pkgdir"/usr/sbin/sensord "$subpkgdir"/usr/sbin/sensord
}