Facebook
From Chocolate Hog, 11 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 185
  1. pkgname=g810-led-git-no-systemd
  2. _appname=g810-led
  3. _gitname=g810-led
  4. pkgver=0.4.2
  5. pkgrel=3
  6. pkgdesc="Linux led controller for Logitech G213, G410, G413. G512, G513, G610, G810, G815, G910 and GPRO Keyboards"
  7. url="https://github.com/MatMoul/g810-led"
  8. arch=('x86_64')
  9. license=('GPL3')
  10. depends=('hidapi')
  11. conflicts=('g810-led-git')
  12. optdepends=('libusb: old implementation, for developpers')
  13. makedepends=('git' 'gcc' 'make')
  14. source=("https://github.com/MatMoul/g810-led/archive/v0.4.2.tar.gz")
  15. md5sums=('6f4180a75469cd763b65fec7f1325c5f')
  16. provides=('g213-led=0.4.2'
  17. 'g410-led=0.4.2'
  18. 'g413-led=0.4.2'
  19. 'g512-led=0.4.2'
  20. 'g513-led=0.4.2'
  21. 'g610-led=0.4.2'
  22. 'g810-led=0.4.2'
  23. 'g815-led=0.4.2'
  24. 'g910-led=0.4.2'
  25. 'gpro-led=0.4.2')
  26.  
  27. build() {
  28.         cd ${_gitname}-${pkgver}
  29.        
  30.         # build with hidapi :
  31.         make
  32.        
  33.         # build with libusb :
  34.         # make bin LIB=libusb
  35. }
  36. package() {
  37. cd ${srcdir}/${_gitname}-${pkgver}
  38. mkdir -m 755 -p "$pkgdir/etc/"
  39. mkdir -m 755 -p "$pkgdir/etc/g810-led/"
  40. mkdir -m 644 -p "$pkgdir/etc/g810-led/sample_effects/"
  41. mkdir -m 644 -p "$pkgdir/etc/g810-led/sample_effects/bash/"
  42. install -m 644 "sample_effects/bash/k2000" "$pkgdir/etc/g810-led/sample_effects/bash/k2000"
  43. mkdir -m 644 -p "$pkgdir/etc/g810-led/sample_effects/python/"
  44. install -m 644 "sample_effects/python/k2000" "$pkgdir/etc/g810-led/sample_effects/python/k2000"
  45. mkdir -m 644 -p "$pkgdir/etc/g810-led/sample_profiles/"
  46. install -m 644 "sample_profiles/all_blue" "$pkgdir/etc/g810-led/sample_profiles/all_blue"
  47. install -m 644 "sample_profiles/all_blue_fxl_breathing_red" "$pkgdir/etc/g810-led/sample_profiles/all_blue_fxl_breathing_red"
  48. install -m 644 "sample_profiles/all_green" "$pkgdir/etc/g810-led/sample_profiles/all_green"
  49. install -m 644 "sample_profiles/all_off" "$pkgdir/etc/g810-led/sample_profiles/all_off"
  50. install -m 644 "sample_profiles/all_red" "$pkgdir/etc/g810-led/sample_profiles/all_red"
  51. install -m 644 "sample_profiles/colors" "$pkgdir/etc/g810-led/sample_profiles/colors"
  52. install -m 644 "sample_profiles/fx_breathing_red" "$pkgdir/etc/g810-led/sample_profiles/fx_breathing_red"
  53. install -m 644 "sample_profiles/fx_color_green" "$pkgdir/etc/g810-led/sample_profiles/fx_color_green"
  54. install -m 644 "sample_profiles/fx_cwave" "$pkgdir/etc/g810-led/sample_profiles/fx_cwave"
  55. install -m 644 "sample_profiles/fx_cycle" "$pkgdir/etc/g810-led/sample_profiles/fx_cycle"
  56. install -m 644 "sample_profiles/fx_hwave" "$pkgdir/etc/g810-led/sample_profiles/fx_hwave"
  57. install -m 644 "sample_profiles/fx_vwave" "$pkgdir/etc/g810-led/sample_profiles/fx_vwave"
  58. install -m 644 "sample_profiles/group_keys" "$pkgdir/etc/g810-led/sample_profiles/group_keys"
  59. install -m 644 "sample_profiles/keys_v_gradiant_fr_ch-latin1" "$pkgdir/etc/g810-led/sample_profiles/keys_v_gradiant_fr_ch-latin1"
  60. mkdir -m 755 -p "$pkgdir/etc/udev/"
  61. mkdir -m 755 -p "$pkgdir/etc/udev/rules.d/"
  62. install -m 644 "udev/g810-led.rules" "$pkgdir/etc/udev/rules.d/g810-led.rules"
  63. mkdir -m 755 -p "$pkgdir/usr/"
  64. mkdir -m 755 -p "$pkgdir/usr/bin/"
  65. install -m 755  "bin/g810-led" "$pkgdir/usr/bin/g810-led"
  66. mkdir -m 755 -p "$pkgdir/usr/share/"
  67. mkdir -m 755 -p "$pkgdir/usr/share/licenses/"
  68. mkdir -m 755 -p "$pkgdir/usr/share/licenses/g810-led/"
  69. install -m 644 "LICENSE" "$pkgdir/usr/share/licenses/g810-led/LICENSE"
  70. }
  71.