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.

160 lines
4.3 KiB

  1. pkg_name="meson"
  2. pkg_license="apache"
  3. pkg_maintainer="${USER} <${USER}@unknown>"
  4. pkg_section="devel"
  5. pkg_priority="optional"
  6. pkg_arch="all"
  7. pkg_commondesc="high-productivity build system"
  8. pkg_longdesc="
  9. Meson is a build system designed to increase programmer\n\
  10. productivity. It does this by providing a fast, simple and easy to\n\
  11. use interface for modern software development tools and practices.
  12. "
  13. pkg_giturl="https://github.com/mesonbuild/meson"
  14. pkg_homeurl="http://mesonbuild.com"
  15. git_commithash=${git_commithash_meson}
  16. pkg_gitver="git describe --long | sed 's/\-[a-z].*//; s/\-/\./; s/[a-z]//g'"
  17. pkg_controlfile="./debian/control"
  18. pkg_rulesfile="./debian/rules"
  19. ########################################################
  20. # MESON - Debian rules file override
  21. pkg_debrules="\
  22. #!/usr/bin/make -f
  23. # Original script by Jussi Pakkanen
  24. export MESON_PRINT_TEST_OUTPUT=1
  25. export QT_SELECT=qt5
  26. export LC_ALL=C.UTF-8
  27. %:
  28. dh \$@ --with python3 --buildsystem=pybuild
  29. override_dh_auto_configure:
  30. override_dh_auto_build:
  31. override_dh_auto_test:
  32. override_dh_clean:
  33. dh_clean
  34. rm -f *.pyc
  35. rm -rf __pycache__
  36. rm -rf mesonbuild/__pycache__
  37. rm -rf mesonbuild/*/__pycache__
  38. rm -rf work\ area
  39. rm -rf install\ dir/*
  40. rm -f meson-test-run.txt meson-test-run.xml
  41. rm -rf meson.egg-info
  42. rm -rf build
  43. rm -rf .pybuild
  44. override_dh_install:
  45. # Helper script to autogenerate cross files.
  46. python3 setup.py install --root=\$\$(pwd)/debian/meson --prefix=/usr --install-layout=deb --install-lib=/usr/share/meson --install-scripts=/usr/share/meson
  47. rm -rf \$\$(pwd)/debian/meson/usr/share/meson/mesonbuild/__pycache__
  48. rm -rf \$\$(pwd)/debian/meson/usr/share/meson/mesonbuild/*/__pycache__
  49. rm \$\$(pwd)/debian/meson/usr/bin/meson
  50. ln -s ../share/meson/meson \$\$(pwd)/debian/meson/usr/bin/meson
  51. "
  52. ########################################################
  53. # Debian control file Overrides section
  54. pkg_overrides=(
  55. empty
  56. )
  57. # Debian control file Suggests section
  58. pkg_suggests=(
  59. empty
  60. )
  61. # Debian control file Conflicts section
  62. pkg_conflicts=(
  63. empty
  64. )
  65. # Debian control file Breaks section
  66. pkg_breaks=(
  67. empty
  68. )
  69. # Debian control file Replaces section
  70. pkg_replaces=(
  71. empty
  72. )
  73. # Debian control file Provides section
  74. pkg_provides=(
  75. empty
  76. )
  77. ##############
  78. # Build time dependencies
  79. pkg_deps_build=(
  80. 'python3 (>= 3.5)'
  81. 'dh-python'
  82. 'python3-setuptools'
  83. 'ninja-build (>= 1.6)'
  84. )
  85. # Runtime dependencies
  86. pkg_deps_runtime=(
  87. 'ninja-build (>=1.6)'
  88. 'python3'
  89. )
  90. # Extra fields for Debian control file Source (start) section
  91. pkg_extra_1=(
  92. 'X-Python3-Version: >= 3.5'
  93. )
  94. # Extra fields for Debian control file Package (end) section
  95. pkg_extra_2=(
  96. empty
  97. )
  98. ############################
  99. # Deb builder execution field
  100. # Do not build either debug symbols or doc files
  101. pkg_debbuilder="DEB_BUILD_OPTIONS=\"strip nodocs noddebs nocheck\" dpkg-buildpackage -rfakeroot -b -us -uc"
  102. ########################################################
  103. # Contents of Debian control file
  104. # This is a necessary variable setting for array loops below
  105. IFS=$'\n'
  106. pkg_debcontrol="\
  107. Source: ${pkg_name}
  108. Section: ${pkg_section}
  109. Priority: ${pkg_priority}
  110. Maintainer: ${pkg_maintainer}
  111. Build-Depends: debhelper (>=9), $(if [[ ${pkg_deps_build[0]} != "empty" ]]; then \
  112. for w in ${pkg_deps_build[@]}; do printf '%s, ' ${w}; done; fi)
  113. Standards-Version: 4.1.3
  114. Homepage: ${pkg_homeurl}
  115. $(if [[ ${pkg_extra_1[0]} != "empty" ]]; then for w in ${pkg_extra_1[@]}; do echo ${w}; done ; fi)
  116. Package: ${pkg_name}
  117. Architecture: ${pkg_arch}
  118. Depends: \${shlibs:Depends}, \${misc:Depends}, $(if [[ ${pkg_deps_runtime[0]} != "empty" ]]; then \
  119. for w in ${pkg_deps_runtime[@]}; do printf '%s, ' ${w}; done; fi)
  120. Description: ${pkg_commondesc}
  121. $(echo -e ${pkg_longdesc} | sed 's/^/ /g; s/\n/\n /g')
  122. $(if [[ ${pkg_extra_2[0]} != "empty" ]]; then for w in ${pkg_extra_2[@]}; do echo ${w}; done ; fi)
  123. $(if [[ ${pkg_suggests[0]} != "empty" ]]; then echo "Suggests: $(echo ${_kg_suggests[*]} | sed 's/\s/, /g')"; fi)
  124. $(if [[ ${pkg_conflicts[0]} != "empty" ]]; then echo "Conflicts: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  125. $(if [[ ${pkg_breaks[0]} != "empty" ]]; then echo "Breaks: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  126. $(if [[ ${pkg_replaces[0]} != "empty" ]]; then echo "Replaces: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  127. $(if [[ ${pkg_provides[0]} != "empty" ]]; then echo "Provides: $(echo ${pkg_overrides[*]} | sed 's/\s/, /g')"; fi)
  128. "
  129. unset IFS