Automate installation of DXVK, D9VK + Wine/Wine Staging & update GPU drivers + PlayonLinux wineprefixes (Debian/Ubuntu/Mint/Arch Linux/Manjaro)
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.

131 lines
3.2 KiB

  1. pkg_name="dxvk-git"
  2. pkg_license="custom --copyrightfile ../LICENSE"
  3. pkg_maintainer="${USER} <${USER}@unknown>"
  4. pkg_section="otherosfs"
  5. pkg_priority="optional"
  6. pkg_arch="all"
  7. pkg_commondesc="Vulkan-based D3D11 and D3D10 implementation for Linux / Wine"
  8. pkg_longdesc="
  9. A Vulkan-based translation layer for Direct3D 10/11 which
  10. allows running 3D applications on Linux using Wine.
  11. "
  12. pkg_giturl="https://github.com/doitsujin/dxvk"
  13. pkg_homeurl="https://github.com/doitsujin/dxvk"
  14. git_commithash=${git_commithash_dxvk}
  15. pkg_gitver="git describe --long | sed 's/\-[a-z].*//; s/\-/\./; s/[a-z]//g'"
  16. pkg_controlfile="./debian/control"
  17. pkg_rulesfile="./debian/rules"
  18. ########################################################
  19. # Debian rules file override
  20. pkg_debrules="\
  21. #!/usr/bin/make -f
  22. %:
  23. dh \$@
  24. override_dh_auto_configure:
  25. override_dh_usrlocal:
  26. "
  27. ########################################################
  28. # Debian control file Overrides section
  29. pkg_overrides=(
  30. empty
  31. )
  32. # Debian control file Suggests section
  33. pkg_suggests=(
  34. empty
  35. )
  36. # Debian control file Conflicts section
  37. pkg_conflicts=(
  38. empty
  39. )
  40. # Debian control file Breaks section
  41. pkg_breaks=(
  42. empty
  43. )
  44. # Debian control file Replaces section
  45. pkg_replaces=(
  46. empty
  47. )
  48. # Debian control file Provides section
  49. pkg_provides=(
  50. empty
  51. )
  52. ##############
  53. # Build time dependencies
  54. pkg_deps_build=(
  55. #${_coredeps[*]}
  56. 'meson'
  57. 'glslang'
  58. 'gcc-mingw-w64-x86-64'
  59. 'gcc-mingw-w64-i686'
  60. 'g++-mingw-w64-x86-64'
  61. 'g++-mingw-w64-i686'
  62. 'mingw-w64-x86-64-dev'
  63. 'mingw-w64-i686-dev'
  64. )
  65. # Runtime dependencies
  66. pkg_deps_runtime=(
  67. 'wine'
  68. 'winetricks'
  69. )
  70. # Extra fields for Debian control file Source section
  71. pkg_extra_1=(
  72. empty
  73. )
  74. # Extra fields for Debian control file Package section
  75. pkg_extra_2=(
  76. empty
  77. )
  78. ########################################################
  79. # Contents of Debian control file
  80. # This is a necessary variable setting for array loops below
  81. IFS=$'\n'
  82. pkg_debcontrol="\
  83. Source: ${pkg_name}
  84. Section: ${pkg_section}
  85. Priority: ${pkg_priority}
  86. Maintainer: ${pkg_maintainer}
  87. Build-Depends: debhelper (>=9), $(if [[ ${pkg_deps_build[0]} != "empty" ]]; then \
  88. for w in ${pkg_deps_build[@]}; do printf '%s, ' ${w}; done; fi)
  89. Standards-Version: 4.1.3
  90. Homepage: ${pkg_homeurl}
  91. $(if [[ ${pkg_extra_1[0]} != "empty" ]]; then for w in ${pkg_extra_1[@]}; do echo ${w}; done ; fi)
  92. Package: ${pkg_name}
  93. Architecture: ${pkg_arch}
  94. Depends: \${shlibs:Depends}, \${misc:Depends}, $(if [[ ${pkg_deps_runtime[0]} != "empty" ]]; then \
  95. for w in ${pkg_deps_runtime[@]}; do printf '%s, ' ${w}; done; fi)
  96. Description: ${pkg_commondesc}
  97. $(echo -e ${pkg_longdesc} | sed 's/^/ /g; s/\n/\n /g')
  98. $(if [[ ${pkg_extra_2[0]} != "empty" ]]; then for w in ${pkg_extra_2[@]}; do echo ${w}; done ; fi)
  99. $(if [[ ${pkg_suggests[0]} != "empty" ]]; then echo "Suggests: $(echo ${_kg_suggests[*]} | sed 's/\s/, /g')"; fi)
  100. $(if [[ ${pkg_conflicts[0]} != "empty" ]]; then echo "Conflicts: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  101. $(if [[ ${pkg_breaks[0]} != "empty" ]]; then echo "Breaks: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  102. $(if [[ ${pkg_replaces[0]} != "empty" ]]; then echo "Replaces: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  103. $(if [[ ${pkg_provides[0]} != "empty" ]]; then echo "Provides: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  104. "
  105. unset IFS