ac5ab51d73
closes #7897
47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
# Template file for 'lm_sensors'
|
|
pkgname=lm_sensors
|
|
version=3.5.0
|
|
revision=2
|
|
wrksrc="${pkgname/_/-}-${version//./-}"
|
|
build_style=gnu-makefile
|
|
make_build_args="MACHINE=${XBPS_TARGET_MACHINE#-musl}"
|
|
make_install_args="${make_build_args} PREFIX=/usr SBINDIR=/usr/bin
|
|
MANDIR=/usr/share/man"
|
|
hostmakedepends="flex perl"
|
|
depends="perl"
|
|
short_desc="Utilities to read temperature/voltage/fan sensors"
|
|
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
|
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
|
homepage="https://github.com/lm-sensors/lm-sensors"
|
|
distfiles="https://github.com/lm-sensors/lm-sensors/archive/V${version//./-}.tar.gz"
|
|
checksum=f671c1d63a4cd8581b3a4a775fd7864a740b15ad046fe92038bcff5c5134d7e0
|
|
|
|
conf_files="/etc/sensors3.conf"
|
|
|
|
pre_build() {
|
|
sed -i prog/*/Module.mk \
|
|
-e "/^MODULE_DIR :=/i LDFLAGS := ${LDFLAGS}" \
|
|
-e 's;$(CC) $(EXLDFLAGS);$(CC) $(LDFLAGS) $(EXLDFLAGS);'
|
|
}
|
|
|
|
post_install() {
|
|
vsv fancontrol
|
|
}
|
|
|
|
libsensors_package() {
|
|
short_desc="Library to read temperature/voltage/fan sensors"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
libsensors-devel_package() {
|
|
depends="libsensors>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|