summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c5f8a8a73e207a4866edaaae0344d284d89850e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Jack <DevJackMC@gmail.com>


pkgname=hyperx-cloud-ii-wireless-bin
pkgver=1.0.0
pkgrel=1
pkgdesc='HyperX Cloud II Battery and Mute Monitoring (BIN version)'
arch=('x86_64')
url='https://github.com/LennardKittner/HyperXCloudIIWireless'
license=('MIT')
depends=('dbus' 'libusb' 'hidapi')
provides=('hyperx-cloud-ii-wireless')
conflicts=('hyperx-cloud-ii-wireless')
#source=('git+https://github.com/LennardKittner/HyperXCloudIIWireless.git')

source=("HyperXCloudIIWireless.zip::https://github.com/LennardKittner/HyperXCloudIIWireless/releases/download/v${pkgver}/Linux.zip")
sha256sums=('SKIP')



build() {

  echo KERNEL=="hidraw*", ATTRS{idVendor}=="0951", ATTRS{idProduct}=="16c4", MODE="0666" >> 99-hyperx-cloud-II.rules
  echo KERNEL=="hidraw*", ATTRS{idVendor}=="0951", ATTRS{idProduct}=="1723", MODE="0666" >> 99-hyperx-cloud-II.rules

}

package() {

  install -Dm755 hyper_x_cloud_ii_wireless "${pkgdir}/usr/bin/cloud-ii-tray"
  install -Dm755 cli_app "${pkgdir}/usr/bin/cloud-ii-cli"


  
  install -Dm644 99-hyperx-cloud-II.rules "${pkgdir}/usr/lib/udev/rules.d/99-hyperx-cloud-II.rules"

}