summaryrefslogtreecommitdiff
path: root/pcr/python-steamcontroller-git
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/python-steamcontroller-git')
-rw-r--r--pcr/python-steamcontroller-git/80-steam-controller-permission.rules3
-rw-r--r--pcr/python-steamcontroller-git/PKGBUILD44
-rw-r--r--pcr/python-steamcontroller-git/changelog.txt40
-rw-r--r--pcr/python-steamcontroller-git/steamcontroller.install24
4 files changed, 111 insertions, 0 deletions
diff --git a/pcr/python-steamcontroller-git/80-steam-controller-permission.rules b/pcr/python-steamcontroller-git/80-steam-controller-permission.rules
new file mode 100644
index 000000000..3fd2949f6
--- /dev/null
+++ b/pcr/python-steamcontroller-git/80-steam-controller-permission.rules
@@ -0,0 +1,3 @@
+#USB devices
+SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE="0660", TAG+="uaccess"
+KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"
diff --git a/pcr/python-steamcontroller-git/PKGBUILD b/pcr/python-steamcontroller-git/PKGBUILD
new file mode 100644
index 000000000..1c9a4c409
--- /dev/null
+++ b/pcr/python-steamcontroller-git/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor (Arch): vorpalblade77@gmail.com
+pkgname=python-steamcontroller-git
+_pkgname=steamcontroller
+pkgver=r92.71cb09c
+_gitver=71cb09c9dd4e0d6dfd61a109562f24e5aea58517
+pkgrel=1
+pkgdesc="Standalone userland driver for the Steam controller"
+arch=('i686' 'x86_64')
+url="https://github.com/ynsta/${_pkgname}"
+license=('MIT')
+makedepends=('git' 'python-distutils-extra' 'python-setuptools')
+depends=('python-libusb1')
+optdepends=('python-pyside: Required for sc-gyro-plot.py'
+ 'python-pyqtgraph: Required for sc-gyro-plot.py')
+provides=('steamcontroller')
+conflicts=("${_pkgname}")
+changelog='changelog.txt'
+source=("${_pkgname}-${pkgver}::git+https://github.com/ynsta/${_pkgname}.git/#commit=$_gitver"
+ '80-steam-controller-permission.rules')
+sha256sums=('SKIP'
+ 'ab6efa7c0aaf408f51eee8e1d83ec07004730848bdef3ab9e091847fb915f240')
+install='steamcontroller.install'
+
+pkgver() {
+ cd "${_pkgname}-${pkgver}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${_pkgname}-${pkgver}"
+ python setup.py build
+}
+
+package() {
+ cd "${_pkgname}-${pkgver}"
+ install -m755 -d "${pkgdir}/usr/lib/udev/rules.d"
+ install -Dm 644 "${srcdir}/80-steam-controller-permission.rules" \
+ "${pkgdir}/usr/lib/udev/rules.d/80-steam-controller-permission.rules"
+ python setup.py install --root="${pkgdir}" \
+ --prefix="/usr" \
+ --compile -O1
+ install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/pcr/python-steamcontroller-git/changelog.txt b/pcr/python-steamcontroller-git/changelog.txt
new file mode 100644
index 000000000..3db384486
--- /dev/null
+++ b/pcr/python-steamcontroller-git/changelog.txt
@@ -0,0 +1,40 @@
+Git commits dc9f278->71cb09c
+ * Dependencies added to setup.py (enum34 apparently)
+
+Git commits ab60329->dc9f278
+ * Fix typo (LPAD -> RPAD)
+
+Git commits a8c0b8a->ab60329
+ * Callback work for trigger axis event
+
+Git commits db7b12a->a8c0b8a
+ * Simple example script (sc-callbacks.py)
+ * Default mouse scale slightly reduced
+ * Callback modes (not user visible, for the most part)
+
+Git commit 054e35d
+ * Correct wrongly mapped right pad
+
+Git commit d3af617
+ * Add support for wired mode (usb connected only)
+
+Git commit 074ccf2
+ * Updates to README.
+
+Git commit f8a6316
+ * NEW: Haptics have been added
+ * Removed: udev rule -- appears to work without it when STEAM is
+ installed.
+Git commit f70b7ea
+ * NEW: sc-desktop.py gives desktop keyboard/mouse
+ * Removed: optional dependencies (kodi, evtest) as it is no longer
+ needed.
+
+Initial code v2
+ * Added programs that can be used for testing (Kodi, evtest)
+
+Initial code
+ * Not really working
+ * Try "echo 8f07005e 015e01f4 01000000 | sc-test-cmsg.py" to check
+ * sc-xbox.py start *should* start emulating the 360 controller.Initial
+ code
diff --git a/pcr/python-steamcontroller-git/steamcontroller.install b/pcr/python-steamcontroller-git/steamcontroller.install
new file mode 100644
index 000000000..9b03e18d7
--- /dev/null
+++ b/pcr/python-steamcontroller-git/steamcontroller.install
@@ -0,0 +1,24 @@
+__GROUP="games"
+post_install() {
+ getent group ${__GROUP} >> /dev/null || /usr/sbin/groupadd ${__GROUP} || return 1
+ /bin/cat <<EOF
+==> Please add all users that will be running Steam to the "${__GROUP}" group
+EOF
+ udevadm control --reload
+ /bin/cat <<EOF
+==> Install either "steam" or "steamcontroller-udev" for the udev rules.
+==> You can use the controller in xbox360 mode or desktop mode
+ $ sc-xbox.py start
+==> or
+ $ sc-desktop.py start
+EOF
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ getent group $__{GROUP} &>/dev/null && /usr/sbin/groupdel ${__GROUP}
+}
+