Last active
August 4, 2023 02:17
-
-
Save Swyter/3c5f741690d5cfe5c7d67a15fa841312 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Anastasios Vacharakis <archlinux@vacharakis.de> | |
pkgname=steamdeck-gyrodsu | |
pkgver=1.0.0 | |
pkgrel=2 | |
pkgdesc="A tool for enabling gyroscopic controls on Steam Deck." | |
arch=('x86_64') | |
url="https://github.com/kmicki/SteamDeckGyroDSU" | |
license=('MIT') | |
depends=('unzip') | |
source=("https://github.com/kmicki/SteamDeckGyroDSU/releases/latest/download/SteamDeckGyroDSUSetup.zip") | |
sha256sums=('SKIP') | |
build() { | |
unzip -o "${srcdir}/SteamDeckGyroDSUSetup.zip" | |
sed -i 's|ExecStart=%h/sdgyrodsu/sdgyrodsu|ExecStart=/usr/bin/sdgyrodsu|' "${srcdir}/SteamDeckGyroDSUSetup/sdgyrodsu.service" | |
sed -i 's|GROUP="usbaccess"|MODE="0666"|' "${srcdir}/SteamDeckGyroDSUSetup/51-deck-controls.rules" | |
} | |
package() { | |
mkdir -p "${pkgdir}/usr/bin" | |
mkdir -p "${pkgdir}/usr/lib/systemd/system" | |
cp "${srcdir}/SteamDeckGyroDSUSetup/sdgyrodsu" "${pkgdir}/usr/bin/sdgyrodsu" | |
install -Dm 644 "${srcdir}/SteamDeckGyroDSUSetup/51-deck-controls.rules" "${pkgdir}/etc/udev/rules.d/51-deck-controls.rules" | |
install -Dm 644 "${srcdir}/SteamDeckGyroDSUSetup/sdgyrodsu.service" "${pkgdir}/usr/lib/systemd/system/" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment