2010-01-12 16:21:14 +00:00
|
|
|
# Template file for 'lm-sensors'
|
|
|
|
pkgname=lm-sensors
|
2013-05-29 08:55:51 +00:00
|
|
|
version=3.3.4
|
2014-02-21 10:51:16 +00:00
|
|
|
revision=2
|
2010-01-12 16:21:14 +00:00
|
|
|
wrksrc="lm_sensors-${version}"
|
2013-04-13 08:15:49 +00:00
|
|
|
hostmakedepends="which flex perl"
|
2014-01-01 15:10:11 +00:00
|
|
|
conf_files="/etc/sensors3.conf"
|
2010-01-12 16:21:14 +00:00
|
|
|
short_desc="Utilities to read temperature/voltage/fan sensors"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-10-08 16:57:40 +00:00
|
|
|
license="GPL-2, LGPL-2.1"
|
2012-11-13 10:34:07 +00:00
|
|
|
homepage="http://www.lm-sensors.org/"
|
|
|
|
distfiles="http://dl.lm-sensors.org/$pkgname/releases/lm_sensors-$version.tar.bz2"
|
2013-05-29 08:55:51 +00:00
|
|
|
checksum=b4608610cb5de4b24e3fe1ae357712e8633a8a929bbb42df5eecc4ccee6ba76d
|
2010-01-12 16:21:14 +00:00
|
|
|
|
2011-11-22 06:57:24 +00:00
|
|
|
do_build() {
|
2013-03-02 11:14:26 +00:00
|
|
|
make CC="$CC" LD="$LD" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" PREFIX=/usr ${makejobs}
|
2011-10-08 16:57:40 +00:00
|
|
|
}
|
|
|
|
|
2011-11-22 06:57:24 +00:00
|
|
|
do_install() {
|
2011-10-08 16:57:40 +00:00
|
|
|
make PREFIX=/usr MANDIR=/usr/share/man DESTDIR=${DESTDIR} install
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
libsensors_package() {
|
|
|
|
short_desc="Library to read temperature/voltage/fan sensors"
|
|
|
|
pkg_install() {
|
2014-02-21 10:51:16 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libsensors-devel_package() {
|
2014-02-21 10:51:16 +00:00
|
|
|
depends="libsensors>=${version}_${revision}"
|
2013-04-13 08:15:49 +00:00
|
|
|
short_desc="lm-sensors development kit"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2014-02-21 10:51:16 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 08:15:49 +00:00
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|