-
Notifications
You must be signed in to change notification settings - Fork 16
/
PKGBUILD
47 lines (41 loc) · 1.72 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
pkgname=lm_sensors
pkgver=3.6.2
_pkgver=3-6-2
_commit=42f240d2a457834bcbdf4dc8b57237f97b5f5854
pkgrel=1
pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring"
arch=('x86_64')
url="https://github.com/groeck/lm-sensors"
license=('GPL' 'LGPL')
depends=('perl' 'sysfsutils')
makedepends=('rrdtool')
backup=('etc/sensors3.conf' 'etc/conf.d/healthd' 'etc/conf.d/sensord')
options=('!emptydirs')
source=("https://github.com/hramrach/lm-sensors/archive/V${_pkgver}.tar.gz"
#source=("https://github.com/lm-sensors/lm-sensors/archive/${_commit}.zip"
'healthd'
'healthd.conf'
'sensord.conf'
'healthd.service')
md5sums=('44c733f509cd4a31494fd3e355152b0a'
'b68bdb73bb4d28ebdb36e2d92278582d'
'f3ed015c38bdbe9b4e17d38833fde9cc'
'd398a55842fb5f2365a011512df6fc3c'
'daf19e142d59f015040814172742502b')
build() {
cd lm-sensors-${_pkgver}
sed -i 's|/etc/sysconfig|/etc/conf.d|' prog/{detect/sensors-detect,init/lm_sensors.service}
sed -i 's|EnvironmentFile=|EnvironmentFile=-|' prog/init/lm_sensors.service
make PREFIX=/usr
}
package() {
cd lm-sensors-${_pkgver}
make BUILD_STATIC_LIB=0 \
PREFIX=/usr MANDIR=/usr/share/man DESTDIR=${pkgdir} install
install -D -m644 prog/init/fancontrol.service ${pkgdir}/usr/lib/systemd/system/fancontrol.service
install -D -m644 prog/init/lm_sensors.service ${pkgdir}/usr/lib/systemd/system/lm_sensors.service
install -D -m755 ${srcdir}/healthd ${pkgdir}/usr/sbin/healthd
install -D -m644 ${srcdir}/healthd.conf ${pkgdir}/etc/conf.d/healthd
install -D -m644 ${srcdir}/sensord.conf ${pkgdir}/etc/conf.d/sensord
install -D -m644 ${srcdir}/healthd.service ${pkgdir}/usr/lib/systemd/system/healthd.service
}