steam-udev-rules: split from steam package
this is advantageous for several reasons: - accurate license (and not in /nonfree/) - can be updated independent from steam - available for all archs
This commit is contained in:
parent
a28fc98ba0
commit
638f3220d8
4 changed files with 32 additions and 29 deletions
|
@ -1 +0,0 @@
|
|||
steam
|
30
srcpkgs/steam-udev-rules/template
Normal file
30
srcpkgs/steam-udev-rules/template
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Template file for 'steam-udev-rules'
|
||||
pkgname=steam-udev-rules
|
||||
reverts="1.0.0.78_2 1.0.0.78_3"
|
||||
version=1.0.0.61+20230830
|
||||
revision=1
|
||||
_commit=13443480a64fe8f10676606bd57da6de89f8ccb1
|
||||
short_desc="Udev rules for gaming peripherals for Steam and SteamVR"
|
||||
maintainer="classabbyamp <void@placeviolette.net>"
|
||||
license="MIT"
|
||||
homepage="https://github.com/ValveSoftware/steam-devices"
|
||||
distfiles="https://github.com/ValveSoftware/steam-devices/archive/${_commit}.tar.gz"
|
||||
checksum=2e508acb093d1428f32c3f6b0bc836cc4a20ceef4afc92b6cdb7cf631400fd36
|
||||
|
||||
post_patch() {
|
||||
# support access via input group or logind uaccess
|
||||
vsed -e 's/TAG+="uaccess"/GROUP="input", &/g' \
|
||||
-i 60-steam-input.rules \
|
||||
-i 60-steam-vr.rules
|
||||
}
|
||||
|
||||
do_install() {
|
||||
# Oculus support, see https://bugs.launchpad.net/ubuntu/+source/steam/+bug/1498655
|
||||
vinstall "${FILESDIR}/99-oculus.rules" 644 usr/lib/udev/rules.d
|
||||
|
||||
for f in *.rules; do
|
||||
vinstall "$f" 644 usr/lib/udev/rules.d
|
||||
done
|
||||
|
||||
vlicense LICENSE
|
||||
}
|
|
@ -2,8 +2,6 @@
|
|||
pkgname=steam
|
||||
version=1.0.0.78
|
||||
revision=3
|
||||
_steam_devices_commit=13443480a64fe8f10676606bd57da6de89f8ccb1
|
||||
build_wrksrc="steam-launcher"
|
||||
archs="i686 x86_64"
|
||||
depends="zenity xz curl dbus freetype gdk-pixbuf hicolor-icon-theme desktop-file-utils
|
||||
liberation-fonts-ttf file tar bash coreutils lsof steam-udev-rules"
|
||||
|
@ -11,18 +9,10 @@ short_desc="Digital distribution client bootstrap package - Valve's steam client
|
|||
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
||||
license="custom: Proprietary license"
|
||||
homepage="https://steampowered.com/"
|
||||
distfiles="http://repo.steampowered.com/steam/pool/steam/s/steam/steam_${version}.tar.gz
|
||||
https://github.com/ValveSoftware/steam-devices/archive/${_steam_devices_commit}.tar.gz"
|
||||
checksum="104259755d7211b5f101db247ff70ebfed6ae6ca3e14da61195d1fbf91c7200d
|
||||
2e508acb093d1428f32c3f6b0bc836cc4a20ceef4afc92b6cdb7cf631400fd36"
|
||||
distfiles="http://repo.steampowered.com/steam/pool/steam/s/steam/steam_${version}.tar.gz"
|
||||
checksum=104259755d7211b5f101db247ff70ebfed6ae6ca3e14da61195d1fbf91c7200d
|
||||
repository=nonfree
|
||||
|
||||
post_patch() {
|
||||
vsed -e 's/TAG+="uaccess"/GROUP="input", &/g' \
|
||||
-i ../steam-devices-${_steam_devices_commit}/60-steam-input.rules \
|
||||
-i ../steam-devices-${_steam_devices_commit}/60-steam-vr.rules
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make DESTDIR=${DESTDIR} install
|
||||
|
||||
|
@ -31,22 +21,6 @@ do_install() {
|
|||
# Ignore steamdeps.
|
||||
ln -sf /bin/true ${DESTDIR}/usr/bin/steamdeps
|
||||
|
||||
# Oculus support: need read-write access to
|
||||
# Valve-owned input event device nodes.
|
||||
# See https://bugs.launchpad.net/ubuntu/+source/steam/+bug/1498655
|
||||
vinstall ${FILESDIR}/99-oculus.rules 644 usr/lib/udev/rules.d
|
||||
|
||||
# Device support for Steam-related hardware (e.g. controllers over Steam Link)
|
||||
vinstall ../steam-devices-${_steam_devices_commit}/60-steam-input.rules 644 usr/lib/udev/rules.d
|
||||
vinstall ../steam-devices-${_steam_devices_commit}/60-steam-vr.rules 644 usr/lib/udev/rules.d
|
||||
|
||||
# Void-specific documentation.
|
||||
vdoc "${FILESDIR}/README.voidlinux"
|
||||
}
|
||||
|
||||
steam-udev-rules_package() {
|
||||
short_desc+=" - udev rules for hardware"
|
||||
pkg_install() {
|
||||
vmove usr/lib/udev/rules.d
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue