diff options
author | Martchus | 2024-02-25 18:20:21 +0100 |
---|---|---|
committer | Martchus | 2024-02-25 18:20:21 +0100 |
commit | 5df4d3a2dcab4e0b9a2c32509ff2481adb61d6b8 (patch) | |
tree | 3e74f5c7b52b48f185d75bf591096905ca0a2a4a | |
parent | 378d9ba97e169521aa8c37aed4acf0bd2f53664a (diff) | |
download | aur-5df4d3a2dcab4e0b9a2c32509ff2481adb61d6b8.tar.gz |
Force Android Qt 6 packages to use Java 17
This may help to prevent https://bugreports.qt.io/browse/QTBUG-119223.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 3 | ||||
-rw-r--r-- | PKGBUILD.sh.ep | 2 |
3 files changed, 4 insertions, 3 deletions
@@ -14,7 +14,7 @@ pkgbase = android-aarch64-qt6-scxml makedepends = qt6-declarative makedepends = qt6-scxml makedepends = ninja - makedepends = java-environment-openjdk>=11 + makedepends = java-environment-openjdk=17 depends = android-aarch64-qt6-base optdepends = android-aarch64-qt6-declarative: QML bindings options = !strip @@ -14,7 +14,7 @@ license=(GPL3 LGPL3 FDL custom) pkgdesc='Static and runtime integration of SCXML models into Qt6 code (android)' depends=('android-aarch64-qt6-base') optdepends=('android-aarch64-qt6-declarative: QML bindings') -makedepends=('android-cmake' 'android-aarch64-qt6-declarative' 'qt6-declarative' 'qt6-scxml' 'ninja' 'java-environment-openjdk>=11') +makedepends=('android-cmake' 'android-aarch64-qt6-declarative' 'qt6-declarative' 'qt6-scxml' 'ninja' 'java-environment-openjdk=17') options=('!strip' '!buildflags' 'staticlibs' '!emptydirs') groups=(android-${_android_arch}-qt6) _pkgfqn="qtscxml-everywhere-src-${_qtver}" @@ -22,6 +22,7 @@ source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/subm sha256sums=('094982f0ff828070b2282c97b68229ec8ff4d68b32f335ab1cba81530a40a43e') build() { + export PATH=/usr/lib/jvm/java-17-openjdk/bin:$PATH source android-env ${_android_arch} android-${_android_arch}-cmake -G Ninja -B build-$_android_arch -S $_pkgfqn \ -DCMAKE_FIND_ROOT_PATH="${ANDROID_PREFIX}" \ diff --git a/PKGBUILD.sh.ep b/PKGBUILD.sh.ep index 2474452bbf4c..2c3862fe129d 100644 --- a/PKGBUILD.sh.ep +++ b/PKGBUILD.sh.ep @@ -9,4 +9,4 @@ license=(GPL3 LGPL3 FDL custom) pkgdesc='Static and runtime integration of SCXML models into Qt6 code (android)' depends=(<%== qt6deps qw(base) %>) optdepends=(<%== qt6optdeps declarative => 'QML bindings' %>) -makedepends=('android-cmake<%== $static_suffix %>' <%== qt6deps qw(declarative) %> 'qt6-declarative' 'qt6-scxml' 'ninja' 'java-environment-openjdk>=11') +makedepends=('android-cmake<%== $static_suffix %>' <%== qt6deps qw(declarative) %> 'qt6-declarative' 'qt6-scxml' 'ninja' 'java-environment-openjdk=17') |