Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbellamy/5e8d61a449bbff5132aa to your computer and use it in GitHub Desktop.
Save rbellamy/5e8d61a449bbff5132aa to your computer and use it in GitHub Desktop.
intellij-idea-ultimate-edition AUR patch
From 98898a025749769615ea53bcd0271174c62ca89d Mon Sep 17 00:00:00 2001
From: "G. Richard Bellamy" <rbellamy@terradatum.com>
Date: Thu, 31 Dec 2015 15:03:57 -0800
Subject: [PATCH] Honor IDEA_JDK set by environment
---
PKGBUILD | 5 ++---
intellijidea.sh | 3 ++-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
index bc9599b..e9dd178 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,9 +16,8 @@ source=(https://download.jetbrains.com/idea/ideaIU-$pkgver.tar.gz \
jetbrains-idea.desktop
)
sha256sums=('5a3f6d8ba6d5ce8c505f13564c04cf2f674f1c022b9a33871013acb0ebe10fe5'
- '69f9e675d2fc5fe1c02e281367a38789a5005afc3d6a3e0cd08d099f10057b62'
- '83af2ba8f9f14275a6684e79d6d4bd9b48cd852c047dacfc81324588fa2ff92b'
-)
+ 'ed7883b33b6fa9f2e303e5549bd238ceb552ec11ca116730271a58aca685229a'
+ '83af2ba8f9f14275a6684e79d6d4bd9b48cd852c047dacfc81324588fa2ff92b')
package() {
cd "$srcdir"
diff --git a/intellijidea.sh b/intellijidea.sh
index fc36ca2..ea22044 100644
--- a/intellijidea.sh
+++ b/intellijidea.sh
@@ -1,3 +1,4 @@
#!/bin/sh
-export IDEA_JDK=$JAVA_HOME
+[[ "$IDEA_JDK" == "" ]] && IDEA_JDK=$JAVA_HOME
+export IDEA_JDK
exec /usr/share/intellij-idea-ultimate-edition/bin/idea.sh "$@"
--
2.6.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment