The application fails to start with Java 23 being the new default. According to the developer Java 17 is required.
I recommend depending on a static Java version, e.g. with:
diff --git a/PKGBUILD b/PKGBUILD
index f164cb5..1dc7291 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,35 +6,34 @@
pkgname=portfolio-performance-bin
pkgver=0.71.2
-pkgrel=1
+pkgrel=2
pkgdesc="A simple tool to calculate the overall performance of an investment portfolio."
arch=('x86_64')
url="https://www.portfolio-performance.info"
license=('EPL-1.0')
options=('!strip')
-depends=('java-runtime')
-validpgpkeys=('E46E6F8FF02E4C83569084589239277F560C95AC')
-
+depends=('java-runtime=17')
source=(
portfolio_$pkgver.tar.gz::"https://github.com/buchen/portfolio/releases/download/${pkgver}/PortfolioPerformance-${pkgver}-linux.gtk.x86_64.tar.gz"
portfolio_$pkgver.tar.gz.asc::"https://github.com/buchen/portfolio/releases/download/${pkgver}/PortfolioPerformance-${pkgver}-linux.gtk.x86_64.tar.gz.asc"
portfolio-performance-bin.svg::"https://raw.githubusercontent.com/buchen/portfolio/${pkgver}/portfolio-product/icons/logo.svg"
portfolio-performance-bin.desktop
+ portfolio-performance.sh
)
+sha512sums=('329c43013bb48942d8bf217dd62a51f57a36d60dba0a36a929960d117ce08d3b47ade9c3f9a16407b9c52842584b02c55637bf54ba124f3f3b1e1aed572dcfcb'
+ 'SKIP'
+ 'a7aef110c3379ea40644c3acc8681abd2bda82522d90fc4777632883454055c63426f97dada8ca247e5fa20a9f5b462eead46d2c2bf16989d35cebd774d32162'
+ '30301e96d108f25b10d77bf370bef366cb774f400487f6ffb1d3d718691bd2ee29b6a0fe5e7d8e8cfbe8af538285e9b2953a67657c4c752025045a7a6d9efb82'
+ '94f6e93f0c7f44ce7e38a5a5f36934cb57f012d55a10a76bebb5ac07256a88013ada245b6d0bd765748d2dc08e4a5fb2e3f1c376b08913b77d8365beadedd0b5')
+validpgpkeys=('E46E6F8FF02E4C83569084589239277F560C95AC')
package() {
install -d "$pkgdir"/{opt,usr/bin}
cp -a "$srcdir"/portfolio "${pkgdir}"/opt/portfolio-performance-bin
- ln -s /opt/portfolio-performance-bin/PortfolioPerformance "$pkgdir"/usr/bin/PortfolioPerformance
+ install -Dm 755 portfolio-performance.sh "$pkgdir"/usr/bin/PortfolioPerformance
install -Dm 644 portfolio-performance-bin.desktop -t "$pkgdir"/usr/share/applications
install -Dm 644 portfolio-performance-bin.svg -t "$pkgdir"/usr/share/pixmaps
}
-
-
-sha512sums=('329c43013bb48942d8bf217dd62a51f57a36d60dba0a36a929960d117ce08d3b47ade9c3f9a16407b9c52842584b02c55637bf54ba124f3f3b1e1aed572dcfcb'
- 'SKIP'
- 'a7aef110c3379ea40644c3acc8681abd2bda82522d90fc4777632883454055c63426f97dada8ca247e5fa20a9f5b462eead46d2c2bf16989d35cebd774d32162'
- '30301e96d108f25b10d77bf370bef366cb774f400487f6ffb1d3d718691bd2ee29b6a0fe5e7d8e8cfbe8af538285e9b2953a67657c4c752025045a7a6d9efb82')
diff --git a/portfolio-performance.sh b/portfolio-performance.sh
new file mode 100755
index 0000000..c2c5c73
--- /dev/null
+++ b/portfolio-performance.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
+export PATH="$JAVA_HOME/bin:$PATH"
+
+exec /opt/portfolio-performance-bin/PortfolioPerformance "$@"
Pinned Comments
tuxxx commented on 2024-04-16 14:10 (UTC) (edited on 2024-04-16 14:11 (UTC) by tuxxx)
Make sure to import Andreas Buchens gpg key with
jesusignacio commented on 2023-01-29 21:37 (UTC) (edited on 2023-01-29 21:39 (UTC) by jesusignacio)
@emiltb just set a newer Java environment. For example:
sudo archlinux-java set java-11-opendjk
In case you need to know which ones do you have, run:sudo archlinux-java status