summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2452c9db2eaaa064c50272f5074dd2e66c359d9b (plain)
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
# Contributor: WonderWoofy <sugar.and.scruffy@gmail.com>
# Contributor: rat4 <rat4vier@gmail.com>
# Maintainer: ultraviolet <ultravioletnanokitty@gmail.com>

_pkgname=thermald
pkgname=thermald-git
pkgver=2.5.4.r0.g63b290f
pkgrel=1
pkgdesc="The Linux Thermal Daemon program from 01.org"
arch=('i686' 'x86_64')
url="https://github.com/intel/thermal_daemon"
license=('GPL2')
depends=('dbus-glib>=0.94' 'libxml2>=2.4')
backup=('etc/thermald/thermal-conf.xml')
makedepends=('git'
  'upower'
  'libevdev'
  'gtk-doc'
  'autoconf-archive')
conflicts=('thermald')
provides=('thermald')
source=("$_pkgname::git+https://github.com/intel/thermal_daemon.git"
		'modules-load-msr.conf')
md5sums=('SKIP'
         '3f8abd21c1be92e631fd9f557c61355b')


pkgver() {
  cd $_pkgname
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $_pkgname
  ./autogen.sh
  ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin
  make
}

package() {
  cd $_pkgname
  make DESTDIR="$pkgdir" install
  mkdir -p ${pkgdir}/usr/lib/modules-load.d
  install -m644 ${srcdir}/modules-load-msr.conf ${pkgdir}/usr/lib/modules-load.d/thermald.conf
  install -m644 ${srcdir}/${_pkgname}/data/thermal-conf.xml ${pkgdir}/etc/${_pkgname}/
}