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.

138 lines
3.6 KiB

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