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.

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