summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik “Freso” S. Olesen2018-07-14 21:13:12 +0200
committerFrederik “Freso” S. Olesen2018-07-14 21:22:34 +0200
commitcc271c63261b6d1b4d30040c0271d733495e3ae5 (patch)
tree914ebbaa92109f46a0c6ba72928bcb6cf728abf9
parentfffca522ec4a50d6b07e765a37c0ca30dcc7ad16 (diff)
downloadaur-cc271c63261b6d1b4d30040c0271d733495e3ae5.tar.gz
Add Wooting udev rules
From https://wooting.helpscoutdocs.com/article/34-linux-udev-rules
-rw-r--r--.SRCINFO4
-rw-r--r--70-wootility.rules3
-rw-r--r--PKGBUILD9
3 files changed, 12 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4af41423f596..d2fb23f83c13 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = wootility-appimage
pkgdesc = Utility for configuring Wooting keyboards (binary AppImage version)
pkgver = 2.3.4
- pkgrel = 1
+ pkgrel = 2
url = https://www.wooting.nl/wootility
arch = x86_64
license = unknown
@@ -10,7 +10,9 @@ pkgbase = wootility-appimage
noextract = wootility-2.3.4-x86_64.AppImage
options = !strip
source = https://s3.eu-west-2.amazonaws.com/wooting-update/wootility-linux-beta/wootility-2.3.4-x86_64.AppImage
+ source = 70-wootility.rules
sha512sums = 412a62b18302b025fddc5ca1c22849b457540e576e378ee32eac07c8b8a8fb37838737f41a2f7983ea7af1b0652acf29da0d2adb635aec34546303911fdf0dcd
+ sha512sums = f8b9eb4334e776d6b30b2ac896fb94497e8d200c9b8de4e00698d6e766aec30a55d6c225b1c91cb1eda5c98161ad26c635da5a555bbf5b349d69c4bc64fba912
pkgname = wootility-appimage
diff --git a/70-wootility.rules b/70-wootility.rules
new file mode 100644
index 000000000000..06fe9c883388
--- /dev/null
+++ b/70-wootility.rules
@@ -0,0 +1,3 @@
+SUBSYSTEM=="input", GROUP="input", MODE="0660"
+SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff01", MODE:="660", GROUP="plugdev"
+SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2402", MODE:="660", GROUP="plugdev"
diff --git a/PKGBUILD b/PKGBUILD
index fafa0594dad9..1a762bba7f82 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=wootility
pkgname=${_pkgname}-appimage
pkgver=2.3.4
-pkgrel=1
+pkgrel=2
pkgdesc='Utility for configuring Wooting keyboards (binary AppImage version)'
arch=('x86_64')
url='https://www.wooting.nl/wootility'
@@ -11,9 +11,11 @@ provides=("${_pkgname}")
conflicts=("${_pkgname}")
options=(!strip)
_appimage="${_pkgname}-${pkgver}-x86_64.AppImage"
-source=("https://s3.eu-west-2.amazonaws.com/wooting-update/wootility-linux-beta/${_appimage}")
+source=("https://s3.eu-west-2.amazonaws.com/wooting-update/wootility-linux-beta/${_appimage}"
+ '70-wootility.rules')
noextract=("${_appimage}")
-sha512sums=('412a62b18302b025fddc5ca1c22849b457540e576e378ee32eac07c8b8a8fb37838737f41a2f7983ea7af1b0652acf29da0d2adb635aec34546303911fdf0dcd')
+sha512sums=('412a62b18302b025fddc5ca1c22849b457540e576e378ee32eac07c8b8a8fb37838737f41a2f7983ea7af1b0652acf29da0d2adb635aec34546303911fdf0dcd'
+ 'f8b9eb4334e776d6b30b2ac896fb94497e8d200c9b8de4e00698d6e766aec30a55d6c225b1c91cb1eda5c98161ad26c635da5a555bbf5b349d69c4bc64fba912')
prepare() {
bsdcpio --extract --make-directories --insecure 'wootility.desktop' 'usr/share/icons' < "${_appimage}"
@@ -31,4 +33,5 @@ package() {
install -Dp 'wootility.desktop' "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
install -d "${pkgdir}/usr/share/icons"
cp -a usr/share/icons/default "${pkgdir}/usr/share/icons/hicolor"
+ install -Dpm644 '70-wootility.rules' "${pkgdir}/usr/lib/udev/rules.d/70-wootility.rules"
}