install.sh 862 B

12345678910111213141516171819202122232425262728293031
  1. _5_0_0_2_changes() {
  2. echo ':: Upstream added a gtk2 platform theme'
  3. # shellcheck disable=SC2016
  4. echo ' unexport `QT_STYLE_OVERRIDE`'
  5. # shellcheck disable=SC2016
  6. echo ' export `QT_QPA_PLATFORMTHEME=gtk2`'
  7. }
  8. post_upgrade() {
  9. local versions=(
  10. '5.0.0-2'
  11. )
  12. local version
  13. for version in "${versions[@]}"; do
  14. if [[ "$( vercmp "${version}" "${2}" )" -eq 1 ]]; then
  15. # shellcheck disable=SC2091
  16. "$( printf '_%s_changes' "${version}" | perl -p -e 's/\.|-/_/g' )"
  17. fi
  18. done
  19. }
  20. post_install()
  21. {
  22. echo "Remember to set QT_QPA_PLATFORMTHEME:"
  23. echo " $ export QT_QPA_PLATFORMTHEME=gtk2"
  24. echo "... or to make this selectable with qt5ct:"
  25. echo " $ export QT_QPA_PLATFORMTHEME=qt5ct"
  26. echo "and ensure that QT_STYLE_OVERRIDE is not set:"
  27. echo " $ unexport QT_STYLE_OVERRIDE"
  28. }