[arch-commits] Commit in intellij-idea-community-edition/trunk (PKGBUILD idea.sh)

Levente Polyak anthraxx at archlinux.org
Sun Jul 19 22:51:15 UTC 2020


    Date: Sunday, July 19, 2020 @ 22:51:15
  Author: anthraxx
Revision: 664603

upgpkg: intellij-idea-community-edition 2:2020.1.3-2: fix upstream JFX assumption

fixes FS#67323 by adding jfx libs to classpath as upstreams wonky
assumptions that are exclusively tied to work with their copy paste jdk.

Modified:
  intellij-idea-community-edition/trunk/PKGBUILD
  intellij-idea-community-edition/trunk/idea.sh

----------+
 PKGBUILD |    9 ++++++---
 idea.sh  |   11 ++++++++++-
 2 files changed, 16 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-19 21:42:53 UTC (rev 664602)
+++ PKGBUILD	2020-07-19 22:51:15 UTC (rev 664603)
@@ -5,7 +5,7 @@
 pkgname=intellij-idea-community-edition
 pkgver=2020.1.3
 _build=201.8538.31
-pkgrel=1
+pkgrel=2
 epoch=2
 pkgdesc='IDE for Java, Groovy and other programming languages with advanced refactoring features'
 url='https://www.jetbrains.com/idea/'
@@ -13,8 +13,11 @@
 license=('Apache')
 backup=('usr/share/idea/bin/idea.vmoptions'
         'usr/share/idea/bin/idea64.vmoptions')
-depends=('giflib' 'java-environment=11' 'python' 'sh' 'ttf-font' 'libdbusmenu-glib')
+depends=('giflib' 'java-environment=11' 'java11-openjfx' 'python' 'sh' 'ttf-font' 'libdbusmenu-glib')
 makedepends=('ant' 'git' 'java8-openjfx' 'java-environment=8')
+optdepends=(
+  'lldb: lldb frontend integration'
+)
 source=("git+https://github.com/JetBrains/intellij-community.git#tag=idea/${_build}"
         idea-android::"git+https://github.com/JetBrains/android#tag=idea/${_build}"
         idea-adt-tools-base::"git://git.jetbrains.org/idea/adt-tools-base.git#commit=17e9c8b666cac0b974b1efc5e1e4c33404f72904"
@@ -24,7 +27,7 @@
             'SKIP'
             'SKIP'
             '049c4326b6b784da0c698cf62262b591b20abb52e0dcf869f869c0c655f3ce93'
-            '5d4f998bec3249165b0e62b5e51e9b7fbe383bb9f1178ffefe070f2c9872eebb')
+            '115f1091edb138a7a7b15980e8538b4dfd28054cfab38b844df6d918b1b881c5')
 
 prepare() {
   cd intellij-community

Modified: idea.sh
===================================================================
--- idea.sh	2020-07-19 21:42:53 UTC (rev 664602)
+++ idea.sh	2020-07-19 22:51:15 UTC (rev 664603)
@@ -6,6 +6,15 @@
 if [ -z "$IDEA_JDK" ] ; then
   IDEA_JDK="/usr/lib/jvm/java-11-openjdk/"
 fi
-exec env IDEA_JDK="$IDEA_JDK" /usr/share/idea/bin/idea.sh "$@"
+# open-jfx location that should match the JDK version
+if [ -z "$IDEA_JFX" ] ; then
+  IDEA_JFX="/usr/lib/jvm/java-11-openjfx/"
+fi
+# classpath according to defined JDK/JFX
+if [ -z "$IDEA_CLASSPATH" ] ; then
+  IDEA_CLASSPATH="${IDEA_JDK}/lib/*:${IDEA_JFX}/lib/*"
+fi
 
+exec env IDEA_JDK="$IDEA_JDK" IDEA_CLASSPATH="$IDEA_CLASSPATH" /usr/share/idea/bin/idea.sh "$@"
+
 # vim: ts=2 sw=2 et:


More information about the arch-commits mailing list