[arch-commits] Commit in steam/repos (4 files)
Levente Polyak
anthraxx at archlinux.org
Wed Aug 21 21:48:44 UTC 2019
Date: Wednesday, August 21, 2019 @ 21:48:44
Author: anthraxx
Revision: 500445
archrelease: copy trunk to multilib-testing-x86_64
Added:
steam/repos/multilib-testing-x86_64/
steam/repos/multilib-testing-x86_64/PKGBUILD
(from rev 500444, steam/trunk/PKGBUILD)
steam/repos/multilib-testing-x86_64/alsa_sdl_audiodriver.patch
(from rev 500444, steam/trunk/alsa_sdl_audiodriver.patch)
steam/repos/multilib-testing-x86_64/steam-runtime.sh
(from rev 500444, steam/trunk/steam-runtime.sh)
----------------------------+
PKGBUILD | 57 +++++++++++++++++++++++++++++++++++++++++++
alsa_sdl_audiodriver.patch | 14 ++++++++++
steam-runtime.sh | 2 +
3 files changed, 73 insertions(+)
Copied: steam/repos/multilib-testing-x86_64/PKGBUILD (from rev 500444, steam/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD (rev 0)
+++ multilib-testing-x86_64/PKGBUILD 2019-08-21 21:48:44 UTC (rev 500445)
@@ -0,0 +1,57 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: K900 <k0009000 at gmail.com>
+
+pkgname=steam
+pkgver=1.0.0.61
+pkgrel=2
+pkgdesc="Valve's digital software delivery system"
+url='https://steampowered.com/'
+arch=('x86_64')
+license=('custom')
+depends=('bash' 'desktop-file-utils' 'hicolor-icon-theme' 'curl' 'dbus'
+ 'freetype2' 'gdk-pixbuf2' 'ttf-font' 'zenity' 'lsb-release')
+depends_x86_64=('lib32-libgl' 'lib32-gcc-libs' 'lib32-libx11' 'lib32-libxss' 'lib32-alsa-plugins')
+optdepends=('steam-native-runtime: steam native runtime support')
+source=(http://repo.steampowered.com/${pkgname}/pool/${pkgname}/s/${pkgname}/${pkgname}_${pkgver}.tar.gz
+ steam-runtime.sh
+ alsa_sdl_audiodriver.patch)
+sha512sums=('14b4e2d10953dea7e062205f986d95ea46f0791a964c0dcfac905b707da55b25142cb2bc056c5488e0309f7ef4521b44f1540ce14617deb5f1df57a8fd1f723e'
+ '5e75c019e9fe8c67d686c4e3343dac1180a69a4bdb7d39b333415c63201eef9b98da5619dbf6fd8daa6884e65bc7f8afc9e52778682425e5a75987d527eae6f0'
+ '5c6117d86cb95071246434851bae3bf7d1c2174b0c8744e33e9c98ccc22efae0c956e1d7e3969c572aa96259b1b8164992d265541bce49a24daa12555d825fd5')
+prepare() {
+ cd ${pkgname}
+ patch -Np1 < "${srcdir}/alsa_sdl_audiodriver.patch"
+
+ # apply roundups for udev rules
+ sed -r 's|("0666")|"0660", TAG+="uaccess"|g' -i lib/udev/rules.d/60-steam-input.rules
+ sed -r 's|("misc")|\1, OPTIONS+="static_node=uinput"|g' -i lib/udev/rules.d/60-steam-input.rules
+ sed -r 's|(, TAG\+="uaccess")|, MODE="0660"\1|g' -i lib/udev/rules.d/60-steam-vr.rules
+
+ # separated runtime/native desktop files
+ sed -r 's|(Name=Steam)|\1 (Runtime)|' -i steam.desktop
+ sed -r 's|(/usr/bin/steam)|\1-runtime|' -i steam.desktop
+}
+
+package() {
+ cd ${pkgname}
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm 755 "${srcdir}/steam-runtime.sh" "${pkgdir}/usr/bin/steam-runtime"
+ install -d "${pkgdir}/usr/lib/steam"
+ mv "${pkgdir}/usr/bin/steam" "${pkgdir}/usr/lib/steam/steam"
+ ln -sf /usr/bin/steam-runtime "${pkgdir}/usr/bin/steam"
+
+ install -Dm 644 COPYING steam_subscriber_agreement.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 debian/changelog -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+ # blank steamdeps because apt-get
+ ln -sf /usr/bin/true "${pkgdir}/usr/bin/steamdeps"
+
+ install -Dm 644 lib/udev/rules.d/60-steam-input.rules \
+ "${pkgdir}/usr/lib/udev/rules.d/70-steam-input.rules"
+ install -Dm 644 lib/udev/rules.d/60-steam-vr.rules \
+ "${pkgdir}/usr/lib/udev/rules.d/70-steam-vr.rules"
+}
+
+# vim: ts=2 sw=2 et:
Copied: steam/repos/multilib-testing-x86_64/alsa_sdl_audiodriver.patch (from rev 500444, steam/trunk/alsa_sdl_audiodriver.patch)
===================================================================
--- multilib-testing-x86_64/alsa_sdl_audiodriver.patch (rev 0)
+++ multilib-testing-x86_64/alsa_sdl_audiodriver.patch 2019-08-21 21:48:44 UTC (rev 500445)
@@ -0,0 +1,14 @@
+--- a/steam 2013-02-15 14:43:40.000000000 -0500
++++ b/steam 2013-02-17 23:26:31.951179106 -0500
+@@ -17,6 +17,11 @@
+ # Set up domain for script localization
+ export TEXTDOMAIN=steam
+
++# check if pulseaudio is installed and if it isn't, use alsa for SDL_AUDIODRIVER
++if ! pulseaudio --check &>/dev/null; then
++ export SDL_AUDIODRIVER=alsa
++fi
++
+ function show_message()
+ {
+ style=$1
Copied: steam/repos/multilib-testing-x86_64/steam-runtime.sh (from rev 500444, steam/trunk/steam-runtime.sh)
===================================================================
--- multilib-testing-x86_64/steam-runtime.sh (rev 0)
+++ multilib-testing-x86_64/steam-runtime.sh 2019-08-21 21:48:44 UTC (rev 500445)
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/lib/steam/steam "$@"
More information about the arch-commits
mailing list