summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Rinne2021-01-25 12:25:00 +0200
committerJouni Rinne2021-01-25 12:25:00 +0200
commit2baa3dd1eecf1ac95cff31ec7f19001edb566e81 (patch)
tree15bd6f9d18beadf119c2a7ab2567524e13dcf520
parent545973c055f3626b46df33d9e4d2c197d4981fe4 (diff)
downloadaur-2baa3dd1eecf1ac95cff31ec7f19001edb566e81.tar.gz
Added udev and uinput rules
-rw-r--r--.SRCINFO6
-rw-r--r--56-steamlink.rules8
-rw-r--r--PKGBUILD15
-rw-r--r--uinput.conf1
4 files changed, 24 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1cebb1f7baf..de3ab92beba 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = steamlink-raspberrypi
pkgdesc = Steam Link app for RPi
pkgver = 1.0.8
- pkgrel = 1
+ pkgrel = 2
url = https://store.steampowered.com/steamlink/about
arch = armv7h
license = custom
@@ -12,7 +12,11 @@ pkgbase = steamlink-raspberrypi
depends = xz
depends = zenity
source = http://media.steampowered.com/steamlink/rpi/steamlink.deb
+ source = 56-steamlink.rules
+ source = uinput.conf
sha256sums = 1bdbae24838043e5803e257979508d41d8c933b14cea7889aa59d55f4246108e
+ sha256sums = 5145864d88180f7d5afcdd7272ff8ff0bc6826a6c3123e1a90f6fe86e4b5e58b
+ sha256sums = a771c9695d7283f7771adc00b680bd27391e6ac00e9fd026f4796067ee9a87eb
pkgname = steamlink-raspberrypi
diff --git a/56-steamlink.rules b/56-steamlink.rules
new file mode 100644
index 00000000000..48115f6d7e9
--- /dev/null
+++ b/56-steamlink.rules
@@ -0,0 +1,8 @@
+# USB devices
+SUBSYSTEM=="usb", GROUP="plugdev"
+
+# HID devices
+KERNEL=="hidraw*", GROUP="input", MODE:="0660"
+
+# Creating virtual devices
+KERNEL=="uinput", GROUP="input", MODE:="0660"
diff --git a/PKGBUILD b/PKGBUILD
index c2d26349438..adae1602518 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,21 @@
# Maintainer: Jouni Rinne <l33tmmx swirlything gmail dot com>
pkgname=steamlink-raspberrypi
pkgver=1.0.8
-pkgrel=1
+pkgrel=2
pkgdesc="Steam Link app for RPi"
arch=('armv7h')
url="https://store.steampowered.com/steamlink/about"
license=('custom')
depends=('libjpeg6-turbo' 'libcec-rpi' 'curl' 'gnupg' 'xz' 'zenity')
-source=("http://media.steampowered.com/steamlink/rpi/steamlink.deb")
-sha256sums=('1bdbae24838043e5803e257979508d41d8c933b14cea7889aa59d55f4246108e')
-
+source=("http://media.steampowered.com/steamlink/rpi/steamlink.deb"
+ "56-steamlink.rules"
+ "uinput.conf")
+sha256sums=('1bdbae24838043e5803e257979508d41d8c933b14cea7889aa59d55f4246108e'
+ '5145864d88180f7d5afcdd7272ff8ff0bc6826a6c3123e1a90f6fe86e4b5e58b'
+ 'a771c9695d7283f7771adc00b680bd27391e6ac00e9fd026f4796067ee9a87eb')
package() {
tar -xvf data.tar.xz -C ${pkgdir}
- rm ${pkgdir}/usr/bin/steamlinkdeps
+ rm ${pkgdir}/usr/bin/steamlinkdeps
+ install -D -m0644 ../56-steamlink.rules ${pkgdir}/usr/lib/udev/rules.d/56-steamlink.rules
+ install -D -m0644 ../uinput.conf ${pkgdir}/etc/modules-load.d/uinput.conf
}
diff --git a/uinput.conf b/uinput.conf
new file mode 100644
index 00000000000..42bc0053c78
--- /dev/null
+++ b/uinput.conf
@@ -0,0 +1 @@
+uinput