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.

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