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.

127 lines
3.3 KiB

  1. pkg_name="glslang"
  2. pkg_license="bsd"
  3. pkg_maintainer="${USER} <${USER}@unknown>"
  4. pkg_section="devel"
  5. pkg_priority="optional"
  6. pkg_arch="all"
  7. pkg_commondesc="Khronos OpenGL and OpenGL ES shader front end and validator."
  8. pkg_longdesc="
  9. Khronos reference front-end for GLSL and ESSL, and sample SPIR-V generator
  10. "
  11. pkg_giturl="https://github.com/KhronosGroup/glslang"
  12. pkg_homeurl="https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/"
  13. git_commithash=${git_commithash_glslang}
  14. pkg_gitver="git describe --long | sed 's/\-[a-z].*//; s/\-/\./; s/[a-z]//g'"
  15. pkg_controlfile="./debian/control"
  16. pkg_rulesfile="./debian/rules"
  17. ########################################################
  18. # Debian rules file override
  19. pkg_debrules="\
  20. #!/usr/bin/make -f
  21. %:
  22. dh \$@
  23. override_dh_usrlocal:
  24. "
  25. ########################################################
  26. # Debian control file Overrides section
  27. pkg_overrides=(
  28. empty
  29. )
  30. # Debian control file Suggests section
  31. pkg_suggests=(
  32. empty
  33. )
  34. # Debian control file Conflicts section
  35. pkg_conflicts=(
  36. empty
  37. )
  38. # Debian control file Breaks section
  39. pkg_breaks=(
  40. empty
  41. )
  42. # Debian control file Replaces section
  43. pkg_replaces=(
  44. empty
  45. )
  46. # Debian control file Provides section
  47. pkg_provides=(
  48. empty
  49. )
  50. ##############
  51. # Build time dependencies
  52. pkg_deps_build=(
  53. #${_coredeps[*]}
  54. 'cmake'
  55. 'python2.7'
  56. )
  57. # Runtime dependencies
  58. pkg_deps_runtime=(
  59. empty
  60. )
  61. # Extra fields for Debian control file Source (start) section
  62. pkg_extra_1=(
  63. empty
  64. )
  65. # Extra fields for Debian control file Package (end) section
  66. pkg_extra_2=(
  67. empty
  68. )
  69. ########################################################
  70. # Deb builder execution field
  71. # Do not build either debug symbols
  72. pkg_debbuilder="DEB_BUILD_OPTIONS=\"strip nodocs noddebs\" dpkg-buildpackage -rfakeroot -b -us -uc"
  73. ########################################################
  74. # Contents of Debian control file
  75. # This is a necessary variable setting for array loops below
  76. IFS=$'\n'
  77. pkg_debcontrol="\
  78. Source: ${pkg_name}
  79. Section: ${pkg_section}
  80. Priority: ${pkg_priority}
  81. Maintainer: ${pkg_maintainer}
  82. Build-Depends: debhelper (>=9), $(if [[ ${pkg_deps_build[0]} != "empty" ]]; then \
  83. for w in ${pkg_deps_build[@]}; do printf '%s, ' ${w}; done; fi)
  84. Standards-Version: 4.1.3
  85. Homepage: ${pkg_homeurl}
  86. $(if [[ ${pkg_extra_1[0]} != "empty" ]]; then for w in ${pkg_extra_1[@]}; do echo ${w}; done ; fi)
  87. Package: ${pkg_name}
  88. Architecture: ${pkg_arch}
  89. Depends: \${shlibs:Depends}, \${misc:Depends}, $(if [[ ${pkg_deps_runtime[0]} != "empty" ]]; then \
  90. for w in ${pkg_deps_runtime[@]}; do printf '%s, ' ${w}; done; fi)
  91. Description: ${pkg_commondesc}
  92. $(echo -e ${pkg_longdesc} | sed 's/^/ /g; s/\n/\n /g')
  93. $(if [[ ${pkg_extra_2[0]} != "empty" ]]; then for w in ${pkg_extra_2[@]}; do echo ${w}; done ; fi)
  94. $(if [[ ${pkg_suggests[0]} != "empty" ]]; then echo "Suggests: $(echo ${_kg_suggests[*]} | sed 's/\s/, /g')"; fi)
  95. $(if [[ ${pkg_conflicts[0]} != "empty" ]]; then echo "Conflicts: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  96. $(if [[ ${pkg_breaks[0]} != "empty" ]]; then echo "Breaks: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  97. $(if [[ ${pkg_replaces[0]} != "empty" ]]; then echo "Replaces: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  98. $(if [[ ${pkg_provides[0]} != "empty" ]]; then echo "Provides: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  99. "
  100. unset IFS