yochananmarqos

Untitled

May 11th, 2020
54
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=afancontrol
  2. pkgver=2.0.0
  3. pkgrel=1
  4. epoch=1
  5. pkgdesc="Advanced Fan Control program, which controls PWM fans according to the current temperatures of the system components."
  6. arch=('any')
  7. url="https://afancontrol.readthedocs.io"
  8. license=('MIT')
  9. depends=('python-click' 'lm_sensors')
  10. makedepends=('python-setuptools')
  11. optdepends=('hddtemp: for measuring HDD/SSD temperatures')
  12. backup=("etc/$pkgname/$pkgname.conf")
  13. source=("https://pypi.org/packages/source/${$pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz"
  14.         "https://raw.githubusercontent.com/KostyaEsmukov/$pkgname/$pkgver/LICENSE")
  15. sha256sums=('3b35bd7256901efc5b55a41e56960384afe3dc58aff12b128533cabe323566d1'
  16.             'cfbf3d258bc1990f8633f0751cf14515500938a6949ff413f6491dfe4b804d1a')
  17.  
  18. build() {
  19.     cd "$pkgname-$pkgver"
  20.     python setup.py build
  21. }
  22.  
  23. package() {
  24.     cd "$pkgname-$pkgver"
  25.     python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  26.  
  27.     mv "$pkgdir/usr/etc/systemd" "$pkgdir/usr/lib"
  28.     mv "$pkgdir/usr/etc" "$pkgdir/etc"
  29.  
  30.     install -Dm644 "$srcdir/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
  31. }
RAW Paste Data