# build with non-probing CMakeLists.txt the qt5 version, assuming both
# qt6 and qt5 artifacts are installed which make the automatic guesser
# recognize the major version of Qt
# (see also upstream FS#76054)
source+=('CMakeLists-Qt5.txt')
sha256sums+=('44378ad0642f14173b4d3b2f98332546d88ffe045db465c415d9c37708fdb1ea')
eval "$(
  declare -f build | \
    sed '
      /cmake -B build5/ i cp $pkgbase-$pkgver/CMakeLists.txt CMakeLists.bak \
        cp CMakeLists-Qt5.txt $pkgbase-$pkgver/CMakeLists.txt
      /cmake -B build6/ i cp CMakeLists.bak $pkgbase-$pkgver/CMakeLists.txt
    '
)"