# Template file for 'lm-sensors' pkgname=lm-sensors version=3.3.3 revision=2 wrksrc="lm_sensors-${version}" hostmakedepends="which flex perl" short_desc="Utilities to read temperature/voltage/fan sensors" maintainer="Juan RP " license="GPL-2, LGPL-2.1" homepage="http://www.lm-sensors.org/" distfiles="http://dl.lm-sensors.org/$pkgname/releases/lm_sensors-$version.tar.bz2" checksum=ecc91ba3d918e96fb7d5eb9acce978af803b130e0b33b08d5ea05b2bfca84955 long_desc=" $pkgname provides most complete hardware health monitoring support for Linux, in the form of kernel drivers and a user-space library" do_build() { make CC="$CC" LD="$LD" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" PREFIX=/usr ${makejobs} } do_install() { make PREFIX=/usr MANDIR=/usr/share/man DESTDIR=${DESTDIR} install } 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="lm-sensors development kit" pkg_install() { vmove usr/include vmove "usr/lib/*.a" vmove usr/share/man/man3 } } lm-sensors_package() { conf_files="/etc/sensors3.conf" pkg_install() { vmove etc vmove usr } }