This is the worst project structure ever, just steal prebuilt bins

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-07-15 16:22:56 +03:00
parent 1c91912338
commit b33152c813
9 changed files with 44 additions and 20 deletions

2
debian/postinst vendored Normal file
View File

@ -0,0 +1,2 @@
#! /bin/bash
systemctl --global enable --now sdgyrodsu.service || echo "sdgyrodsu service could not be enabled"

2
debian/prerm vendored Normal file
View File

@ -0,0 +1,2 @@
#! /bin/bash
systemctl --global disable --now sdgyrodsu.service || echo "sdgyrodsu service could not be disabled"

1
debian/sdgyrodsu.install vendored Normal file
View File

@ -0,0 +1 @@
usr

View File

@ -1,8 +1,8 @@
# Clone Upstream
git clone https://github.com/kmicki/SteamDeckGyroDSU ./sdgyrodsu
#git clone https://github.com/kmicki/SteamDeckGyroDSU ./sdgyrodsu
cp -rvf ./debian ./sdgyrodsu
cd ./sdgyrodsu
for i in ../patches/*.patch; do patch -Np1 -i $i ;done
#for i in ../patches/*.patch; do patch -Np1 -i $i ;done
# Get build deps
apt-get build-dep ./ -y

View File

@ -1,18 +0,0 @@
--- pkg/51-deck-controls.rules 2023-06-30 16:01:59.550968249 -0700
+++ pkg/51-deck-controls.rules 2023-07-01 00:06:21.865925273 -0700
@@ -1,2 +1,2 @@
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="1205", GROUP="usbaccess"
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="1205", TAG+="uaccess"
--- pkg/sdgyrodsu.service 2023-06-30 16:01:59.551968249 -0700
+++ pkg/sdgyrodsu.service 2023-07-01 00:09:40.598922020 -0700
@@ -7,7 +7,7 @@
Type=simple
Restart=always
RestartSec=1
-ExecStart=%h/sdgyrodsu/sdgyrodsu
+ExecStart=/usr/bin/sdgyrodsu
[Install]
WantedBy=default.target

BIN
sdgyrodsu/usr/bin/sdgyrodsu Executable file

Binary file not shown.

View File

@ -0,0 +1,14 @@
[Unit]
Description=Steam Deck Gyro DSU Server
After=sockets.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
ExecStart=/usr/bin/sdgyrodsu
[Install]
WantedBy=default.target

View File

@ -0,0 +1,2 @@
SUBSYSTEMS=="usb", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="1205", TAG+="uaccess"

View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 kmicki
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.