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.

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