Use system-wide Wine, DXVK & D9VK for Steam Play/Proton (Windows) games directly from Linux Steam client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
3.3 KiB

5 years ago
  1. # Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
  2. # Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
  3. # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
  4. # Contributor: K900 <k0009000@gmail.com>
  5. pkgname=steam
  6. pkgver=1.0.0.61
  7. pkgrel=2
  8. pkgdesc="Valve's digital software delivery system"
  9. url='http://steampowered.com/'
  10. arch=('x86_64')
  11. license=('custom')
  12. depends=(
  13. 'bash'
  14. 'desktop-file-utils'
  15. 'hicolor-icon-theme'
  16. 'curl'
  17. 'dbus'
  18. 'freetype2'
  19. 'ttf-font'
  20. 'ttf-liberation'
  21. 'wine'
  22. 'proton-git'
  23. 'openvr-git'
  24. 'openvr-proton'
  25. 'lib32-steamlibs'
  26. 'dxvk-git'
  27. 'd9vk-git'
  28. )
  29. depends_x86_64=(
  30. 'lib32-libgl'
  31. 'lib32-gcc-libs'
  32. 'lib32-libx11'
  33. 'lib32-libxss'
  34. 'lib32-alsa-plugins'
  35. 'lib32-gtk2'
  36. 'lib32-gdk-pixbuf2'
  37. 'lib32-libvdpau'
  38. 'lib32-libva1'
  39. )
  40. optdepends=('steam-native-runtime: steam native runtime support')
  41. #source=(http://repo.steampowered.com/${pkgname}/pool/${pkgname}/s/${pkgname}/${pkgname}_${pkgver}.tar.gz
  42. source=(${pkgname}_${pkgver}.tar.gz
  43. steam-runtime.sh
  44. steam-native.sh
  45. alsa_sdl_audiodriver.patch)
  46. sha512sums=('14b4e2d10953dea7e062205f986d95ea46f0791a964c0dcfac905b707da55b25142cb2bc056c5488e0309f7ef4521b44f1540ce14617deb5f1df57a8fd1f723e'
  47. 'da40f8e814f547f6a14901d753a2ffed1a4cf83df9200ee86e83a470b57b3103c3fbfb7cc77166ff1db646cbb306d6a41e79450cc1ea113d68a2defc55168ee2'
  48. '32a12cb011eff4d9d4caf54a5c04f622b6301977258e86597be9c4622f87b0ea329bb31e963ecb56ce738ccc2e4d1068fb2b65bdd5ac1758bcd25296d4dab6d6'
  49. '5c6117d86cb95071246434851bae3bf7d1c2174b0c8744e33e9c98ccc22efae0c956e1d7e3969c572aa96259b1b8164992d265541bce49a24daa12555d825fd5')
  50. prepare() {
  51. cd ${pkgname}
  52. patch -Np1 < "${srcdir}/alsa_sdl_audiodriver.patch"
  53. # apply roundups for udev rules
  54. # sed -r 's|("0666")|"0660", TAG+="uaccess"|g' -i lib/udev/rules.d/99-steam-controller-perms.rules
  55. # sed -r 's|("misc")|\1, OPTIONS+="static_node=uinput"|g' -i lib/udev/rules.d/99-steam-controller-perms.rules
  56. # sed -r 's|(, TAG\+="uaccess")|, MODE="0660"\1|g' -i lib/udev/rules.d/60-steam-vr.rules
  57. # separated runtime/native desktop files
  58. cp steam{,-native}.desktop
  59. sed -r 's|(Name=Steam)|\1 (Runtime)|' -i steam.desktop
  60. sed -r 's|(/usr/bin/steam)|\1-runtime|' -i steam.desktop
  61. sed -r 's|(Name=Steam)|\1 (Native)|' -i steam-native.desktop
  62. sed -r 's|(/usr/bin/steam)|\1-native|' -i steam-native.desktop
  63. }
  64. package() {
  65. cd ${pkgname}
  66. make DESTDIR="${pkgdir}" install
  67. install -Dm 755 "${srcdir}/steam-runtime.sh" "${pkgdir}/usr/bin/steam-runtime"
  68. install -Dm 755 "${srcdir}/steam-native.sh" "${pkgdir}/usr/bin/steam-native"
  69. install -d "${pkgdir}/usr/lib/steam"
  70. mv "${pkgdir}/usr/bin/steam" "${pkgdir}/usr/lib/steam/steam"
  71. ln -sf /usr/bin/steam-runtime "${pkgdir}/usr/bin/steam"
  72. install -Dm 644 steam-native.desktop -t "${pkgdir}/usr/share/applications"
  73. # install -Dm 644 "${pkgdir}/usr/share/doc/steam/steam_install_agreement.txt" \
  74. # "${pkgdir}/usr/share/licenses/steam/LICENSE"
  75. install -Dm 644 debian/changelog -t "${pkgdir}/usr/share/doc/${pkgname}"
  76. # blank steamdeps because apt-get
  77. ln -sf /usr/bin/true "${pkgdir}/usr/bin/steamdeps"
  78. install -Dm 644 lib/udev/rules.d/60-steam-input.rules \
  79. "${pkgdir}/usr/lib/udev/rules.d/60-steam-input.rules"
  80. install -Dm 644 lib/udev/rules.d/60-steam-vr.rules \
  81. "${pkgdir}/usr/lib/udev/rules.d/70-steam-vr.rules"
  82. }
  83. # vim: ts=2 sw=2 et: