summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Haag2017-02-05 16:20:15 +0100
committerChristoph Haag2017-02-05 16:20:15 +0100
commit00dc99187a3909c5ac4038d470ad94b7e37351ea (patch)
tree3e94d20a0fc5fda3a08864dce9b7e372eda953a2
downloadaur-00dc99187a3909c5ac4038d470ad94b7e37351ea.tar.gz
initial
-rw-r--r--.SRCINFO15
-rw-r--r--83-psvr.rules1
-rw-r--r--PKGBUILD15
-rw-r--r--psvr-udev.install11
4 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..bc6ecf18c38b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+# Generated by mksrcinfo v8
+# Sun Feb 5 15:20:13 UTC 2017
+pkgbase = psvr-udev
+ pkgdesc = Udev rule for the PSVR
+ pkgver = 1
+ pkgrel = 2
+ url = https://www.playstation.com/en-us/explore/playstation-vr/
+ install = psvr-udev.install
+ arch = any
+ license = custom
+ source = 83-psvr.rules
+ md5sums = efa93d15c70616a6617a5ff8013cd1cf
+
+pkgname = psvr-udev
+
diff --git a/83-psvr.rules b/83-psvr.rules
new file mode 100644
index 000000000000..96174e789bff
--- /dev/null
+++ b/83-psvr.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="usb", ATTR{idVendor}=="054C", ATTR{idProduct}=="09AF", MODE="0666", GROUP="plugdev"
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..859461efac27
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,15 @@
+pkgname=psvr-udev
+pkgver=1
+pkgrel=2
+pkgdesc="Udev rule for the PSVR"
+arch=('any')
+url="https://www.playstation.com/en-us/explore/playstation-vr/"
+license=('custom')
+source=('83-psvr.rules')
+install='psvr-udev.install'
+
+package() {
+ install -m755 -d "${pkgdir}/usr/lib/udev/rules.d"
+ install -m644 "${srcdir}/83-psvr.rules" "${pkgdir}/usr/lib/udev/rules.d/"
+}
+md5sums=('efa93d15c70616a6617a5ff8013cd1cf')
diff --git a/psvr-udev.install b/psvr-udev.install
new file mode 100644
index 000000000000..f606cbb98a33
--- /dev/null
+++ b/psvr-udev.install
@@ -0,0 +1,11 @@
+post_install() {
+ udevadm control --reload-rules
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}