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.

40 lines
1.3 KiB

5 years ago
  1. # Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
  2. pkgname=openvr-proton
  3. pkgver=4.2
  4. pkgrel=1
  5. pkgdesc='DLL libraries for Valve Steam Proton & OpenVR platforms'
  6. arch=('x86_64')
  7. url='https://steampowered.com/'
  8. license=('custom')
  9. depends=('wine' 'steam' 'openvr-git' 'dxvk-git')
  10. source=(
  11. "32_vrclient.dll"::"file:///${startdir}/lib32/vrclient.dll"
  12. "32_openvr_api_dxvk.dll"::"file:///${startdir}/lib32/openvr_api_dxvk.dll"
  13. "64_vrclient_x64.dll"::"file:///${startdir}/lib64/vrclient_x64.dll"
  14. "64_openvr_api_dxvk.dll"::"file:///${startdir}/lib64/openvr_api_dxvk.dll"
  15. )
  16. md5sums=('8c15e73e9963e600845c27f840380e92'
  17. '14b755f2c6a58873a5f0410a2d8396c0'
  18. '0b2025db24e3570d2a2732b035bb499a'
  19. '8df23226245195205047694fc6aec654')
  20. package() {
  21. mkdir -p "${pkgdir}"/usr/{lib{32,64}/wine/fakedlls,/share/dxvk/x{32,64}}
  22. cd "${srcdir}"
  23. for dll in ./*.dll; do
  24. for i in 32 64; do
  25. dll_newname=$(echo $(basename "${dll}" | sed "s/^${i}\_//"))
  26. if [[ $(echo $(basename "${dll}")) =~ ^${i} ]]; then
  27. if [[ $(echo $(basename "${dll}")) =~ dxvk ]]; then
  28. install -Dm644 "${dll}" "${pkgdir}/usr/share/dxvk/x${i}/${dll_newname}"
  29. else
  30. install -Dm644 "${dll}" "${pkgdir}/usr/lib${i}/wine/fakedlls/${dll_newname}"
  31. fi
  32. fi
  33. done
  34. done
  35. }