Guest User

tlp-stat pkgbuild

a guest
May 2nd, 2010
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. pkgname=tlp-stat
  2. pkgver=0.2.4
  3. pkgrel=1
  4. pkgdesc="tlp-stat, extracted from TLP by linrunner."
  5. _patchname="patch-${pkgname}-${pkgver}-${pkgrel}"
  6. arch=('any')
  7. url="https://launchpad.net/~linrunner/+archive/tlp"
  8. license=('GPL')
  9. depends=('bash' 'hdparm')
  10. optdepends=('wireless_tools: Control wireless devices.'
  11. 'perl: Used to unregister SCSI services.'
  12. 'ethtool: Used to disable WOL.'
  13. "tp_smapi: Modules for ThinkPad's SMAPI functionality."
  14. 'phc-intel: Frequency driver for Intel CPUs with undervolting feature.'
  15. 'smartmontools: Control and monitor S.M.A.R.T. enabled ATA and SCSI Hard Drives.'
  16. 'lsb-release: Provide short description of the current distribution.'
  17. 'dmidecode: Provide additional information about the system.')
  18. source=(http://ppa.launchpad.net/linrunner/tlp/ubuntu/pool/main/t/tlp/tlp_${pkgver}-0ubuntu1~lucid.tar.gz
  19. ${_patchname})
  20.  
  21. build() {
  22. cd "${srcdir}/tlp-${pkgver}"
  23. patch -Np1 -i ${srcdir}/${_patchname} || return 1
  24. install -dm755 ${pkgdir}/usr/bin/
  25. install -Dm755 tlp-stat ${pkgdir}/usr/bin/
  26. install -dm755 ${pkgdir}/usr/lib/tlp
  27. install -Dm755 tlp-functions ${pkgdir}/usr/lib/tlp/
  28. install -Dm755 tlp-rf-func ${pkgdir}/usr/lib/tlp/
  29. }
  30. md5sums=('4f31dbd92d0ce45e00be6d92ebc4a87c'
  31. '392aa9a75111301c36ad0263bccabec4')
Advertisement
Add Comment
Please, Sign In to add comment