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.

58 lines
2.0 KiB

  1. # Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
  2. # Contributor: Bruno Pagani (a.k.a. ArchangeGabriel) <bruno.n.pagani@gmail.com>
  3. # Contributor: hadrons123 <piruthiviraj at gmail dot com>
  4. # Contributor: WonderWoofy <sugar.and.scruffy@gmail.com>,wallnuss <v dot churavy at gmail dot com>
  5. pkgname=thermald
  6. _pkgname=thermal_daemon
  7. pkgver=1.8
  8. pkgrel=2
  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' 'python')
  14. depends=('dbus-glib' 'libxml2')
  15. backup=('etc/thermald/thermal-conf.xml')
  16. source=(
  17. ${pkgname}-${pkgver}.tar.gz::"https://github.com/01org/${_pkgname}/archive/v${pkgver}.tar.gz"
  18. 'modules-load-thermald.conf'
  19. 'thermald-temp.service'
  20. 'thermal-conf.xml'
  21. 'thermal-cpu-cdev-order.xml'
  22. )
  23. sha256sums=('662456eff5b7ee5a42e54b8a667d002d3a4dec5cacbddc5e1ab5ec94dab218c6'
  24. '0155e1eb459306d251a5a049ffc6c11e144fa8caa75901ac5fa20bd52e05d515'
  25. '483a5958f177ef109217133ef9e770e4745d5b90d162f2bff9347b49ee735438'
  26. '6f85d15a9583e050fec820f2b6a56b42e2e203397433ce9f4ba69be98713eab6'
  27. 'e8fe16460d5003f2b91382d90d72a87082b57f48e9f73d660fec3ba0f4532d02')
  28. build() {
  29. cd ${_pkgname}-${pkgver}
  30. ./autogen.sh
  31. ./configure --prefix=/usr \
  32. --sysconfdir=/etc \
  33. --localstatedir=/var \
  34. --sbindir=/usr/bin
  35. make
  36. }
  37. package() {
  38. cd ${_pkgname}-${pkgver}
  39. make DESTDIR="${pkgdir}" install
  40. install -Dm644 "${srcdir}"/modules-load-thermald.conf "${pkgdir}"/usr/lib/modules-load.d/thermald.conf
  41. cd "${pkgdir}"/etc/thermald/
  42. rm thermal-cpu-cdev-order.xml
  43. rm thermal-conf.xml
  44. install -Dm644 "${srcdir}"/thermal-conf.xml "${pkgdir}"/etc/thermald/thermal-conf.xml
  45. install -Dm644 "${srcdir}"/thermal-cpu-cdev-order.xml "${pkgdir}"/etc/thermald/thermal-cpu-cdev-order.xml
  46. install -Dm644 "${srcdir}"/thermald-temp.service "${pkgdir}"/usr/lib/systemd/system/thermald-temp.service
  47. # Remove Upstart related files
  48. rm -rf "${pkgdir}/etc/init"
  49. }