summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Kracik2025-03-12 18:01:45 +0100
committerPetr Kracik2025-03-12 18:01:45 +0100
commit14378425cfce734cbdd7b39269929e07f5d336a6 (patch)
treee120134f0428348a23825aa9fd4f057e41f99afe
parent7900815d952d2c0d144fda12ec548a854ed8e672 (diff)
downloadaur-14378425cfce734cbdd7b39269929e07f5d336a6.tar.gz
Force Java JRE 21 and point it there
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
-rwxr-xr-xdbeaver.sh4
3 files changed, 12 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 537e1351a0c3..4e72d0837f49 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,14 +6,16 @@ pkgbase = dbeaver-le
install = dbeaver-le.install
arch = x86_64
license = Commercial
- depends = java-runtime>=11
+ depends = java-runtime=21
depends = gtk3
depends = gtk-update-icon-cache
options = !strip
source = dbeaver-le.desktop
source = dbeaver-le.install
+ source = dbeaver.sh
sha256sums = 9d985ebe0332caf09fdee3fbe1e97b4f29533fe84911df46556623dff457a4ee
sha256sums = 0c2a75baa39459fa56159e982d9f28c966837561bd52dffd24bac87b8d65555f
+ sha256sums = 759a3543f304f06838b20f68de391291710001b53187b337d80021394ca5312b
source_x86_64 = http://dbeaver.com/downloads-lite/25.0.0/dbeaver-le-25.0.0-linux.gtk.x86_64-nojdk.tar.gz
sha256sums_x86_64 = 534fcbe8cd295d004ee5db116e82b0b8af49012415cb839f770c28f1c36d66c0
diff --git a/PKGBUILD b/PKGBUILD
index 9eaed2339385..15686faaa41a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,14 +8,15 @@ pkgdesc="A universal database tool for developers and database administrators. L
arch=('x86_64')
url="http://dbeaver.com/"
license=("Commercial")
-depends=('java-runtime>=11' 'gtk3' 'gtk-update-icon-cache')
+depends=('java-runtime=21' 'gtk3' 'gtk-update-icon-cache')
install=dbeaver-le.install
options=('!strip')
-source=(dbeaver-le.desktop dbeaver-le.install)
+source=(dbeaver-le.desktop dbeaver-le.install dbeaver.sh)
source_x86_64=(http://dbeaver.com/downloads-lite/${pkgver}/dbeaver-le-${pkgver}-linux.gtk.x86_64-nojdk.tar.gz)
sha256sums=('9d985ebe0332caf09fdee3fbe1e97b4f29533fe84911df46556623dff457a4ee'
- '0c2a75baa39459fa56159e982d9f28c966837561bd52dffd24bac87b8d65555f')
+ '0c2a75baa39459fa56159e982d9f28c966837561bd52dffd24bac87b8d65555f'
+ '759a3543f304f06838b20f68de391291710001b53187b337d80021394ca5312b')
sha256sums_x86_64=('534fcbe8cd295d004ee5db116e82b0b8af49012415cb839f770c28f1c36d66c0')
@@ -33,6 +34,6 @@ package() {
cp "${srcdir}/dbeaver/readme.txt" "usr/share/doc/${pkgname}/"
cp -r "${srcdir}/dbeaver/licenses" "usr/share/licenses/${pkgname}"
- ln -s "/opt/${pkgname}/dbeaver" "usr/bin/dbeaver-le"
+ ln -s "/opt/${pkgname}/dbeaver.sh" "usr/bin/dbeaver-le"
install -m 644 "${srcdir}/dbeaver-le.desktop" "usr/share/applications/"
}
diff --git a/dbeaver.sh b/dbeaver.sh
new file mode 100755
index 000000000000..f72a04dcdaa9
--- /dev/null
+++ b/dbeaver.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+export PATH="/usr/lib/jvm/java-21-openjdk/bin:${PATH}"
+exec /opt/dbeaver-le/dbeaver "$@"