- pkgname=g810-led-git-no-systemd
- _appname=g810-led
- _gitname=g810-led
- pkgver=0.4.2
- pkgrel=3
- pkgdesc="Linux led controller for Logitech G213, G410, G413. G512, G513, G610, G810, G815, G910 and GPRO Keyboards"
- url="https://github.com/MatMoul/g810-led"
- arch=('x86_64')
- license=('GPL3')
- depends=('hidapi')
- conflicts=('g810-led-git')
- optdepends=('libusb: old implementation, for developpers')
- makedepends=('git' 'gcc' 'make')
- source=("https://github.com/MatMoul/g810-led/archive/v0.4.2.tar.gz")
- md5sums=('6f4180a75469cd763b65fec7f1325c5f')
- provides=('g213-led=0.4.2'
- 'g410-led=0.4.2'
- 'g413-led=0.4.2'
- 'g512-led=0.4.2'
- 'g513-led=0.4.2'
- 'g610-led=0.4.2'
- 'g810-led=0.4.2'
- 'g815-led=0.4.2'
- 'g910-led=0.4.2'
- 'gpro-led=0.4.2')
- build() {
- cd ${_gitname}-${pkgver}
- # build with hidapi :
- make
- # build with libusb :
- # make bin LIB=libusb
- }
- package() {
- cd ${srcdir}/${_gitname}-${pkgver}
- mkdir -m 755 -p "$pkgdir/etc/"
- mkdir -m 755 -p "$pkgdir/etc/g810-led/"
- mkdir -m 644 -p "$pkgdir/etc/g810-led/sample_effects/"
- mkdir -m 644 -p "$pkgdir/etc/g810-led/sample_effects/bash/"
- install -m 644 "sample_effects/bash/k2000" "$pkgdir/etc/g810-led/sample_effects/bash/k2000"
- mkdir -m 644 -p "$pkgdir/etc/g810-led/sample_effects/python/"
- install -m 644 "sample_effects/python/k2000" "$pkgdir/etc/g810-led/sample_effects/python/k2000"
- mkdir -m 644 -p "$pkgdir/etc/g810-led/sample_profiles/"
- install -m 644 "sample_profiles/all_blue" "$pkgdir/etc/g810-led/sample_profiles/all_blue"
- install -m 644 "sample_profiles/all_blue_fxl_breathing_red" "$pkgdir/etc/g810-led/sample_profiles/all_blue_fxl_breathing_red"
- install -m 644 "sample_profiles/all_green" "$pkgdir/etc/g810-led/sample_profiles/all_green"
- install -m 644 "sample_profiles/all_off" "$pkgdir/etc/g810-led/sample_profiles/all_off"
- install -m 644 "sample_profiles/all_red" "$pkgdir/etc/g810-led/sample_profiles/all_red"
- install -m 644 "sample_profiles/colors" "$pkgdir/etc/g810-led/sample_profiles/colors"
- install -m 644 "sample_profiles/fx_breathing_red" "$pkgdir/etc/g810-led/sample_profiles/fx_breathing_red"
- install -m 644 "sample_profiles/fx_color_green" "$pkgdir/etc/g810-led/sample_profiles/fx_color_green"
- install -m 644 "sample_profiles/fx_cwave" "$pkgdir/etc/g810-led/sample_profiles/fx_cwave"
- install -m 644 "sample_profiles/fx_cycle" "$pkgdir/etc/g810-led/sample_profiles/fx_cycle"
- install -m 644 "sample_profiles/fx_hwave" "$pkgdir/etc/g810-led/sample_profiles/fx_hwave"
- install -m 644 "sample_profiles/fx_vwave" "$pkgdir/etc/g810-led/sample_profiles/fx_vwave"
- install -m 644 "sample_profiles/group_keys" "$pkgdir/etc/g810-led/sample_profiles/group_keys"
- install -m 644 "sample_profiles/keys_v_gradiant_fr_ch-latin1" "$pkgdir/etc/g810-led/sample_profiles/keys_v_gradiant_fr_ch-latin1"
- mkdir -m 755 -p "$pkgdir/etc/udev/"
- mkdir -m 755 -p "$pkgdir/etc/udev/rules.d/"
- install -m 644 "udev/g810-led.rules" "$pkgdir/etc/udev/rules.d/g810-led.rules"
- mkdir -m 755 -p "$pkgdir/usr/"
- mkdir -m 755 -p "$pkgdir/usr/bin/"
- install -m 755 "bin/g810-led" "$pkgdir/usr/bin/g810-led"
- mkdir -m 755 -p "$pkgdir/usr/share/"
- mkdir -m 755 -p "$pkgdir/usr/share/licenses/"
- mkdir -m 755 -p "$pkgdir/usr/share/licenses/g810-led/"
- install -m 644 "LICENSE" "$pkgdir/usr/share/licenses/g810-led/LICENSE"
- }