Skip to content

Instantly share code, notes, and snippets.

@zman0900
Created August 15, 2017 21:35
Show Gist options
  • Save zman0900/1e28aae8f5637ffd162c26cb2311fd73 to your computer and use it in GitHub Desktop.
Save zman0900/1e28aae8f5637ffd162c26cb2311fd73 to your computer and use it in GitHub Desktop.
idea-fixes.patch
diff --git a/PKGBUILD b/PKGBUILD
index 00f5b19..d502054 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,13 +10,12 @@ pkgdesc="An intelligent IDE for Java, Groovy and other programming languages wit
url="https://www.jetbrains.com/idea/"
license=('Commercial')
depends=('java-environment' 'giflib' 'libxtst')
+makedepends=('rsync')
options=(!strip)
source=(https://download.jetbrains.com/idea/ideaIU-$pkgver.tar.gz \
- intellijidea.sh \
jetbrains-idea.desktop
)
sha256sums=('136674855d26fb7f07a914eecc7236b177ef8349c23aa7811b9670da43d62ae2'
- 'ed7883b33b6fa9f2e303e5549bd238ceb552ec11ca116730271a58aca685229a'
'83af2ba8f9f14275a6684e79d6d4bd9b48cd852c047dacfc81324588fa2ff92b')
package_intellij-idea-ultimate-edition() {
backup=("usr/share/${pkgname}/bin/idea.vmoptions" "usr/share/${pkgname}/bin/idea64.vmoptions" "usr/share/${pkgname}/bin/idea.properties")
@@ -34,8 +33,9 @@ package_intellij-idea-ultimate-edition() {
chmod +x "$pkgdir"/usr/share/"$pkgname"/bin/idea.sh
chmod +x "$pkgdir"/usr/share/"$pkgname"/bin/fsnotifier
chmod +x "$pkgdir"/usr/share/"$pkgname"/bin/fsnotifier64
+ chmod +x "$pkgdir"/usr/share/"$pkgname"/bin/fsnotifier-arm
- install -D -m755 "$srcdir"/intellijidea.sh "$pkgdir"/usr/bin/"$pkgname"
+ ln -s /usr/share/"$pkgname"/bin/idea.sh "$pkgdir"/usr/bin/"$pkgname"
install -D -m644 "$srcdir"/jetbrains-idea.desktop "$pkgdir"/usr/share/applications/jetbrains-idea.desktop
install -D -m644 "$srcdir"/idea-IU-$_buildver/bin/idea.png "$pkgdir"/usr/share/pixmaps/"$pkgname".png
diff --git a/intellijidea.sh b/intellijidea.sh
deleted file mode 100644
index ea22044..0000000
--- a/intellijidea.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-[[ "$IDEA_JDK" == "" ]] && IDEA_JDK=$JAVA_HOME
-export IDEA_JDK
-exec /usr/share/intellij-idea-ultimate-edition/bin/idea.sh "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment