Skip to content

Instantly share code, notes, and snippets.

@Swyter
Last active August 4, 2023 02:17

Revisions

  1. Swyter revised this gist Aug 4, 2023. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions PKGBUILD
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    pkgname=steamdeck-gyrodsu
    pkgver=1.0.0
    pkgrel=1
    pkgrel=2
    pkgdesc="A tool for enabling gyroscopic controls on Steam Deck."
    arch=('x86_64')
    url="https://github.com/kmicki/SteamDeckGyroDSU"
    @@ -14,11 +14,13 @@ 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"
    cp "${srcdir}/SteamDeckGyroDSUSetup/sdgyrodsu.service" "${pkgdir}/usr/lib/systemd/system/"
    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/"
    }
  2. Swyter created this gist Aug 4, 2023.
    24 changes: 24 additions & 0 deletions PKGBUILD
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    # Maintainer: Anastasios Vacharakis <archlinux@vacharakis.de>

    pkgname=steamdeck-gyrodsu
    pkgver=1.0.0
    pkgrel=1
    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"
    }

    package() {
    mkdir -p "${pkgdir}/usr/bin"
    mkdir -p "${pkgdir}/usr/lib/systemd/system"
    cp "${srcdir}/SteamDeckGyroDSUSetup/sdgyrodsu" "${pkgdir}/usr/bin/sdgyrodsu"
    cp "${srcdir}/SteamDeckGyroDSUSetup/sdgyrodsu.service" "${pkgdir}/usr/lib/systemd/system/"
    }