Guest User

fluffy-switch 2.8.0

a guest
May 17th, 2019
166
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: YoyPa <yoann dot p dot public at gmail dot com>
  2. pkgname=fluffy-switch
  3. pkgver=2.8
  4. pkgrel=0
  5. pkgdesc="Goldtree and Tinfoil GUI for USB install on switch"
  6. arch=('any')
  7. url="https://github.com/fourminute/Fluffy"
  8. license=('GPL')
  9. depends=(
  10. 'python-pyusb'
  11. 'libusb'
  12. 'python-pyqt5'
  13. 'tk'
  14. )
  15. optdepends=(
  16. 'python-qdarkstyle: dark theme toggle in fluffy'
  17. )
  18. backup=(
  19. 'etc/udev/rules.d/80-fluffy-switch.rules'
  20. )
  21. source=("Fluffy-${pkgver}.tar.gz::https://github.com/fourminute/Fluffy/archive/v${pkgver}.tar.gz")
  22. sha256sums=('bbab5cdc5b21186fd2d17bb4d2bcbfdd2e54c185db5977628f948be271beeaea')
  23.  
  24. # Change .desktop file PATH from /tmp to ~/.config/fluffy (Make fluffy config file persistent)
  25. prepare() {
  26. cd "Fluffy-${pkgver}"
  27. sed -e "s|/tmp|$HOME/.config/fluffy|" -i linux/fluffy.desktop
  28. }
  29.  
  30. package() {
  31. mkdir -p "${pkgdir}$HOME/.config/fluffy"
  32. chown $USER:$(id -gn) "${pkgdir}$HOME/.config/fluffy"
  33. cd "Fluffy-${pkgver}"
  34. install -Dm 644 linux/80-fluffy-switch.rules "${pkgdir}/etc/udev/rules.d/80-fluffy-switch.rules"
  35. install -Dm 644 linux/fluffy.desktop "${pkgdir}/usr/share/applications/fluffy.desktop"
  36. install -Dm 644 icons/16x16/fluffy.png "${pkgdir}/usr/share/icons/hicolor/16x16/apps/fluffy.png"
  37. install -Dm 644 icons/24x24/fluffy.png "${pkgdir}/usr/share/icons/hicolor/24x24/apps/fluffy.png"
  38. install -Dm 644 icons/32x32/fluffy.png "${pkgdir}/usr/share/icons/hicolor/32x32/apps/fluffy.png"
  39. install -Dm 644 icons/48x48/fluffy.png "${pkgdir}/usr/share/icons/hicolor/48x48/apps/fluffy.png"
  40. install -Dm 644 icons/64x64/fluffy.png "${pkgdir}/usr/share/icons/hicolor/64x64/apps/fluffy.png"
  41. install -Dm 644 icons/128x128/fluffy.png "${pkgdir}/usr/share/icons/hicolor/128x128/apps/fluffy.png"
  42. install -Dm 755 fluffy.pyw "${pkgdir}/usr/bin/fluffy"
  43. }
RAW Paste Data