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.

170 lines
4.6 KiB

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