Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] steam: Create -devices subpackge for device udev rules
@ 2023-07-31  2:26 BlindRepublic
  2023-07-31  2:38 ` ahesford
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: BlindRepublic @ 2023-07-31  2:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1145 bytes --]

There is a new pull request by BlindRepublic against master on the void-packages repository

https://github.com/BlindRepublic/void-packages steam_devices
https://github.com/void-linux/void-packages/pull/45338

steam: Create -devices subpackge for device udev rules
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (`x86_64-glibc`)


A patch file from https://github.com/void-linux/void-packages/pull/45338.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-steam_devices-45338.patch --]
[-- Type: text/x-diff, Size: 2500 bytes --]

From 265d1f407e126a1ad97991dfefa8c363d290e2ec Mon Sep 17 00:00:00 2001
From: Elliot <BlindRepublic@mailo.com>
Date: Sun, 30 Jul 2023 22:18:20 -0400
Subject: [PATCH] steam: Create -devices subpackge for device udev rules

---
 srcpkgs/steam-devices  |  1 +
 srcpkgs/steam/template | 27 ++++++++++++++++-----------
 2 files changed, 17 insertions(+), 11 deletions(-)
 create mode 120000 srcpkgs/steam-devices

diff --git a/srcpkgs/steam-devices b/srcpkgs/steam-devices
new file mode 120000
index 0000000000000..9fe3d96896344
--- /dev/null
+++ b/srcpkgs/steam-devices
@@ -0,0 +1 @@
+steam
\ No newline at end of file
diff --git a/srcpkgs/steam/template b/srcpkgs/steam/template
index 80d9aa80e6105..6287913a35101 100644
--- a/srcpkgs/steam/template
+++ b/srcpkgs/steam/template
@@ -1,10 +1,10 @@
 # Template file for 'steam'
 pkgname=steam
 version=1.0.0.78
-revision=1
+revision=2
 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"
+ liberation-fonts-ttf file tar bash coreutils lsof steam-devices"
 short_desc="Digital distribution client bootstrap package - Valve's steam client"
 maintainer="Andrew Benson <abenson+void@gmail.com>"
 license="custom: Proprietary license"
@@ -21,15 +21,20 @@ do_install() {
 	# Ignore steamdeps.
 	ln -sf /bin/true ${DESTDIR}/usr/bin/steamdeps
 
-	# Steam Controller 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-steam-controller-perms.rules 644 usr/lib/udev/rules.d
-
-	# Device support for Steam-related hardware (e.g. controllers over Steam Link)
-	vinstall ${FILESDIR}/60-steam-input.rules 644 usr/lib/udev/rules.d
-	vinstall ${FILESDIR}/60-steam-vr.rules 644 usr/lib/udev/rules.d
-
 	# Void-specific documentation.
 	vdoc "${FILESDIR}/README.voidlinux"
 }
+
+steam-devices_package() {
+	short_desc+=" - udev rules for hardware"
+	pkg_install() {
+		# Steam Controller 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-steam-controller-perms.rules 644 usr/lib/udev/rules.d
+
+		# Device support for Steam-related hardware (e.g. controllers over Steam Link)
+		vinstall ${FILESDIR}/60-steam-input.rules 644 usr/lib/udev/rules.d
+		vinstall ${FILESDIR}/60-steam-vr.rules 644 usr/lib/udev/rules.d
+	}
+}

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-08-06  3:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-31  2:26 [PR PATCH] steam: Create -devices subpackge for device udev rules BlindRepublic
2023-07-31  2:38 ` ahesford
2023-07-31  2:41 ` [PR PATCH] [Updated] " BlindRepublic
2023-08-05 20:56 ` [PR REVIEW] steam: Create -udev-rules " classabbyamp
2023-08-06  3:36 ` [PR PATCH] [Updated] " classabbyamp
2023-08-06  3:39 ` [PR PATCH] [Merged]: " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).