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.

156 lines
4.1 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. pkg_compatfile="./debian/compat"
  22. ########################################################
  23. # Debian compatibility flag
  24. pkg_debcompat="9"
  25. ########################################################
  26. # Debian rules file section
  27. pkg_debrules="\
  28. #!/usr/bin/make -f
  29. %:
  30. dh \$@
  31. override_dh_usrlocal:
  32. override_dh_auto_configure:
  33. mkdir obj-x86_64-linux-gnu
  34. cd obj-x86_64-linux-gnu && cmake .. \
  35. -DCMAKE_INSTALL_PREFIX=/usr \
  36. -DCMAKE_VERBOSE_MAKEFILE=ON \
  37. -DCMAKE_BUILD_TYPE=None \
  38. -DCMAKE_INSTALL_SYSCONFDIR=/etc \
  39. -DCMAKE_INSTALL_LOCALSTATEDIR=/var \
  40. -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON \
  41. -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON \
  42. -DENABLE_CTEST=OFF
  43. "
  44. ########################################################
  45. # Debian install file section
  46. pkg_debinstall="empty"
  47. ########################################################
  48. # Debian control file subfields
  49. # Debian control file Overrides section
  50. pkg_overrides=(
  51. empty
  52. )
  53. # Debian control file Suggests section
  54. pkg_suggests=(
  55. empty
  56. )
  57. # Debian control file Conflicts section
  58. pkg_conflicts=(
  59. empty
  60. )
  61. # Debian control file Breaks section
  62. pkg_breaks=(
  63. empty
  64. )
  65. # Debian control file Replaces section
  66. pkg_replaces=(
  67. empty
  68. )
  69. # Debian control file Provides section
  70. pkg_provides=(
  71. empty
  72. )
  73. ############################
  74. # Build time dependencies
  75. pkg_deps_build=(
  76. #${_coredeps[*]}
  77. 'cmake'
  78. 'python3'
  79. )
  80. # Runtime dependencies
  81. pkg_deps_runtime=(
  82. empty
  83. )
  84. # Extra fields for Debian control file Source (start) section
  85. pkg_extra_1=(
  86. empty
  87. )
  88. # Extra fields for Debian control file Package (end) section
  89. pkg_extra_2=(
  90. empty
  91. )
  92. ########################################################
  93. # Deb builder execution field
  94. # Do not build either debug symbols
  95. pkg_debbuilder="DEB_BUILD_OPTIONS=\"strip nodocs noddebs\" dpkg-buildpackage -rfakeroot -b -us -uc -d"
  96. ########################################################
  97. # Contents of Debian control file
  98. # This is a necessary variable setting for array loops below
  99. IFS=$'\n'
  100. pkg_debcontrol="\
  101. Source: ${pkg_name}
  102. Section: ${pkg_section}
  103. Priority: ${pkg_priority}
  104. Maintainer: ${pkg_maintainer}
  105. Build-Depends: debhelper (>=9), $(if [[ ${pkg_deps_build[0]} != "empty" ]]; then \
  106. for w in ${pkg_deps_build[@]}; do printf '%s, ' ${w}; done; fi)
  107. Standards-Version: 4.1.3
  108. Homepage: ${pkg_homeurl}
  109. $(if [[ ${pkg_extra_1[0]} != "empty" ]]; then for w in ${pkg_extra_1[@]}; do echo ${w}; done ; fi)
  110. Package: ${pkg_name}
  111. Architecture: ${pkg_arch}
  112. Depends: \${shlibs:Depends}, \${misc:Depends}, $(if [[ ${pkg_deps_runtime[0]} != "empty" ]]; then \
  113. for w in ${pkg_deps_runtime[@]}; do printf '%s, ' ${w}; done; fi)
  114. Description: ${pkg_commondesc}
  115. $(echo -e ${pkg_longdesc} | sed 's/^/ /g; s/\n/\n /g')
  116. $(if [[ ${pkg_extra_2[0]} != "empty" ]]; then for w in ${pkg_extra_2[@]}; do echo ${w}; done ; fi)
  117. $(if [[ ${pkg_suggests[0]} != "empty" ]]; then echo "Suggests: $(echo ${_kg_suggests[*]} | sed 's/\s/, /g')"; fi)
  118. $(if [[ ${pkg_conflicts[0]} != "empty" ]]; then echo "Conflicts: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  119. $(if [[ ${pkg_breaks[0]} != "empty" ]]; then echo "Breaks: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  120. $(if [[ ${pkg_replaces[0]} != "empty" ]]; then echo "Replaces: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  121. $(if [[ ${pkg_provides[0]} != "empty" ]]; then echo "Provides: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  122. "
  123. unset IFS