summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Haag2016-05-15 16:03:41 +0200
committerChristoph Haag2016-05-15 16:03:41 +0200
commitd48d52994c4c7237c27590a9d33b03dc9728f3c8 (patch)
treee558e4d1c20a48f6de2c027d9c496f3098729df0
downloadaur-d48d52994c4c7237c27590a9d33b03dc9728f3c8.tar.gz
initial
-rw-r--r--.SRCINFO13
-rw-r--r--83-vive.rules2
-rw-r--r--PKGBUILD17
-rw-r--r--vive-udev.install11
4 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c932acb4174
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = vive-udev
+ pkgdesc = Udev rule for the Vive
+ pkgver = 1
+ pkgrel = 1
+ url = https://github.com/OpenHMD/OpenHMD/commit/c29c99712d6f67a3921cb531a0c74f5f5109cb0f
+ install = vive-udev.install
+ arch = any
+ license = custom
+ source = 83-vive.rules
+ sha256sums = 156d93b59942d89c3838f3ae2f45bd832226d19e1f7f04797f9cb640a09a3124
+
+pkgname = vive-udev
+
diff --git a/83-vive.rules b/83-vive.rules
new file mode 100644
index 00000000000..5e8e4fcd70b
--- /dev/null
+++ b/83-vive.rules
@@ -0,0 +1,2 @@
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
+SUBSYSTEM=="usb", ATTR{idVendor}=="28de", MODE="0666", GROUP="plugdev"
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ce4081c8ca8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,17 @@
+# Maintainer: Christoph Haag <haagch+aur@frickel.club>
+
+pkgname=vive-udev
+pkgver=1
+pkgrel=1
+pkgdesc="Udev rule for the Vive"
+arch=('any')
+url="https://github.com/OpenHMD/OpenHMD/commit/c29c99712d6f67a3921cb531a0c74f5f5109cb0f"
+license=('custom')
+source=('83-vive.rules')
+sha256sums=('156d93b59942d89c3838f3ae2f45bd832226d19e1f7f04797f9cb640a09a3124')
+install='vive-udev.install'
+
+package() {
+ install -m755 -d "${pkgdir}/usr/lib/udev/rules.d"
+ install -m644 "${srcdir}/83-vive.rules" "${pkgdir}/usr/lib/udev/rules.d/"
+}
diff --git a/vive-udev.install b/vive-udev.install
new file mode 100644
index 00000000000..f606cbb98a3
--- /dev/null
+++ b/vive-udev.install
@@ -0,0 +1,11 @@
+post_install() {
+ udevadm control --reload-rules
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}