Various instructions for setting up Linux OS on Clevo N950TP6
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.0 KiB

  1. # Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <bruno.n.pagani@gmail.com>
  2. # Contributor: hadrons123 <piruthiviraj at gmail dot com>
  3. # Contributor: WonderWoofy <sugar.and.scruffy@gmail.com>,wallnuss <v dot churavy at gmail dot com>
  4. # Contributor: Pekka Helenius (~ Fincer) <fincer89@hotmail.com>
  5. pkgname=thermald
  6. _pkgname=thermal_daemon
  7. pkgver=1.7.1
  8. pkgrel=1
  9. pkgdesc="The Linux Thermal Daemon program from 01.org"
  10. arch=('i686' 'x86_64')
  11. url="https://01.org/linux-thermal-daemon"
  12. license=('GPL2')
  13. makedepends=('systemd')
  14. depends=('dbus-glib' 'libxml2')
  15. backup=('etc/thermald/thermal-conf.xml')
  16. source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/01org/${_pkgname}/archive/v${pkgver}.tar.gz"
  17. 'modules-load-thermald.conf'
  18. 'thermald-temp.service'
  19. 'thermal-conf.xml'
  20. 'thermal-cpu-cdev-order.xml')
  21. sha256sums=('c4465d9312304b879908289e2e9da7417e88151c1529dff42acb8e3fb6aa4f47'
  22. '0155e1eb459306d251a5a049ffc6c11e144fa8caa75901ac5fa20bd52e05d515'
  23. 'aa5f8df79088e7f4821635f28f285bad33d470397b9c65f2ae7873c25aa0d33f'
  24. 'a567109439e3652942d42dfa38e42af50d5eab8a7c5a2d46905b5c2d6445bf06'
  25. 'e8fe16460d5003f2b91382d90d72a87082b57f48e9f73d660fec3ba0f4532d02')
  26. build() {
  27. cd ${_pkgname}-${pkgver}
  28. ./autogen.sh
  29. ./configure --prefix=/usr \
  30. --sysconfdir=/etc \
  31. --localstatedir=/var \
  32. --sbindir=/usr/bin
  33. make
  34. }
  35. package() {
  36. cd ${_pkgname}-${pkgver}
  37. make DESTDIR="${pkgdir}" install
  38. install -Dm644 "${srcdir}"/modules-load-thermald.conf "${pkgdir}"/usr/lib/modules-load.d/thermald.conf
  39. cd "${pkgdir}"/etc/thermald/
  40. rm thermal-cpu-cdev-order.xml
  41. rm thermal-conf.xml
  42. install -Dm644 "${srcdir}"/thermal-conf.xml "${pkgdir}"/etc/thermald/thermal-conf.xml
  43. install -Dm644 "${srcdir}"/thermal-cpu-cdev-order.xml "${pkgdir}"/etc/thermald/thermal-cpu-cdev-order.xml
  44. install -Dm644 "${srcdir}"/thermald-temp.service "${pkgdir}"/usr/lib/systemd/system/thermald-temp.service
  45. # Remove Upstart related files
  46. rm -r "${pkgdir}/etc/init"
  47. }