[arch-commits] Commit in intellij-idea-community-edition/repos/community-x86_64 (4 files)

Levente Polyak anthraxx at archlinux.org
Sun Feb 24 16:16:45 UTC 2019


    Date: Sunday, February 24, 2019 @ 16:16:44
  Author: anthraxx
Revision: 435525

archrelease: copy trunk to community-x86_64

Added:
  intellij-idea-community-edition/repos/community-x86_64/PKGBUILD
    (from rev 435524, intellij-idea-community-edition/trunk/PKGBUILD)
  intellij-idea-community-edition/repos/community-x86_64/idea-build.patch
    (from rev 435524, intellij-idea-community-edition/trunk/idea-build.patch)
  intellij-idea-community-edition/repos/community-x86_64/idea.desktop
    (from rev 435524, intellij-idea-community-edition/trunk/idea.desktop)
  intellij-idea-community-edition/repos/community-x86_64/idea.sh
    (from rev 435524, intellij-idea-community-edition/trunk/idea.sh)

------------------+
 PKGBUILD         |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 idea-build.patch |   33 ++++++++++++++++++++++++++
 idea.desktop     |   11 ++++++++
 idea.sh          |   11 ++++++++
 4 files changed, 122 insertions(+)

Copied: intellij-idea-community-edition/repos/community-x86_64/PKGBUILD (from rev 435524, intellij-idea-community-edition/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-02-24 16:16:44 UTC (rev 435525)
@@ -0,0 +1,67 @@
+# Maintainer: Lukas Jirkovsky <l.jirkovsky at gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=intellij-idea-community-edition
+pkgver=2018.3.4
+_build=183.5429.30
+_adt_tools_base_commit=e841aa025aa62a4250040ca2a538daabbff54cf5
+pkgrel=1
+epoch=2
+pkgdesc='IDE for Java, Groovy and other programming languages with advanced refactoring features'
+url='https://www.jetbrains.com/idea/'
+arch=('x86_64')
+license=('Apache')
+backup=('usr/share/idea/bin/idea.vmoptions'
+        'usr/share/idea/bin/idea64.vmoptions')
+depends=('giflib' 'java-environment=8' 'python' 'sh' 'ttf-font' 'libdbusmenu-glib')
+makedepends=('ant' 'kotlin' 'git' 'java-openjfx')
+source=(idea-${_build}.tar.gz::https://github.com/JetBrains/intellij-community/archive/idea/${_build}.tar.gz
+        idea-android-${_build}.tar.gz::https://github.com/JetBrains/android/archive/idea/${_build}.tar.gz
+        idea-adt-tools-base::"git://git.jetbrains.org/idea/adt-tools-base.git#commit=${_adt_tools_base_commit}"
+        idea-build.patch
+        idea.desktop
+        idea.sh)
+sha256sums=('db785f692dfc2620035d28016eade34d14f447beb2b69de4c566b0c832e1eb12'
+            '408586c688bab9cc9825bfbc4be2504f1ee0f6cc1a7076a9ffba7cdd6a822598'
+            'SKIP'
+            '9df5bfebad9364899a926ea974a12b7f9924cabf29c504bd944a39bf400cac67'
+            'fa9e3cba5e26a7e01cecda867f23467322db123c5553dfbb4f14aae034ccbed7'
+            'c021dba82f75a18be6ffdc2fe70d616496bbe3a14e7a5efef30c06b4cbd915c3')
+
+prepare() {
+  cd intellij-community-idea-${_build}
+  patch -Np1 -i ../idea-build.patch
+  echo ${_build} > build.txt
+  # build system doesn't like symlinks
+  mv "${srcdir}"/android-idea-${_build} android
+  mv "${srcdir}"/idea-adt-tools-base android/tools-base
+}
+
+build() {
+  cd intellij-community-idea-${_build}
+  unset _JAVA_OPTIONS
+  export JAVA_HOME=/usr/lib/jvm/java-8-openjdk
+  export PATH="${JAVA_HOME}/bin:${PATH}"
+  ant build
+  tar -xf out/idea-ce/artifacts/ideaIC-${_build}-no-jdk.tar.gz -C "${srcdir}"
+}
+
+package() {
+  cd idea-IC-${_build}
+
+  # workaround FS#40934
+  sed -i 's/lcd/on/' bin/*.vmoptions
+
+  rm -rf bin/fsnotifier{,-arm} lib/libpty/linux/x86
+
+  install -dm 755 "${pkgdir}"/usr/share/{licenses,pixmaps,idea}
+  cp -dr --no-preserve='ownership' bin lib plugins redist "${pkgdir}"/usr/share/idea/
+  cp -dr --no-preserve='ownership' license "${pkgdir}"/usr/share/licenses/idea
+  ln -s /usr/share/idea/bin/idea.png "${pkgdir}"/usr/share/pixmaps/
+  install -Dm 644 ../idea.desktop -t "${pkgdir}"/usr/share/applications/
+  install -Dm 755 ../idea.sh "${pkgdir}"/usr/bin/idea
+  install -Dm 644 build.txt -t "${pkgdir}"/usr/share/idea
+}
+
+# vim: ts=2 sw=2 et:

Copied: intellij-idea-community-edition/repos/community-x86_64/idea-build.patch (from rev 435524, intellij-idea-community-edition/trunk/idea-build.patch)
===================================================================
--- idea-build.patch	                        (rev 0)
+++ idea-build.patch	2019-02-24 16:16:44 UTC (rev 435525)
@@ -0,0 +1,33 @@
+diff -rupN intellij-community-pycharm-182.1177.orig/build/dependencies/setupJbre.gradle intellij-community-pycharm-182.1177/build/dependencies/setupJbre.gradle
+--- intellij-community-pycharm-182.1177.orig/build/dependencies/setupJbre.gradle	2018-03-29 19:26:20.265970726 +0200
++++ intellij-community-pycharm-182.1177/build/dependencies/setupJbre.gradle	2018-03-29 19:26:52.690160085 +0200
+@@ -1,7 +1,7 @@
+ def setupJbre = task setupJbre {}
+ 
+ def jdkRepo = 'https://cache-redirector.jetbrains.com/intellij-jdk'
+-def targetOs = System.getProperty("intellij.build.target.os", "all")
++def targetOs = System.getProperty("intellij.build.target.os", "linux")
+ def bundledJreVersion = System.getProperty("intellij.build.bundled.jre.version", "8").toInteger()
+ def isBundledJreModular = bundledJreVersion >= 9
+ def jreArtifactBuild = System.getProperty("intellij.build.bundled.jre.build", jdkBuild)
+diff -rupN intellij-community-pycharm-182.1177.orig/platform/build-scripts/groovy/org/jetbrains/intellij/build/BuildOptions.groovy intellij-community-pycharm-182.1177/platform/build-scripts/groovy/org/jetbrains/intellij/build/BuildOptions.groovy
+--- intellij-community-pycharm-182.1177.orig/platform/build-scripts/groovy/org/jetbrains/intellij/build/BuildOptions.groovy	2018-03-29 19:26:25.415841858 +0200
++++ intellij-community-pycharm-182.1177/platform/build-scripts/groovy/org/jetbrains/intellij/build/BuildOptions.groovy	2018-03-29 19:31:46.883868914 +0200
+@@ -33,7 +33,7 @@ class BuildOptions {
+   /**
+    * Specifies for which operating systems distributions should be built.
+    */
+-  String targetOS = System.getProperty("intellij.build.target.os", OS_ALL)
++  String targetOS = System.getProperty("intellij.build.target.os", OS_LINUX)
+   static final String OS_LINUX = "linux"
+   static final String OS_WINDOWS = "windows"
+   static final String OS_MAC = "mac"
+@@ -100,7 +100,7 @@ class BuildOptions {
+    * Build number without product code (e.g. '162.500.10'), if {@code null} '<baseline>.SNAPSHOT' will be used. Use {@link BuildContext#buildNumber} to
+    * get the actual build number in build scripts.
+    */
+-  String buildNumber = System.getProperty("build.number")
++  String buildNumber = System.getProperty("idea.build.number")
+ 
+   /**
+    * By default build process produces temporary and resulting files under projectHome/out/productName directory, use this property to

Copied: intellij-idea-community-edition/repos/community-x86_64/idea.desktop (from rev 435524, intellij-idea-community-edition/trunk/idea.desktop)
===================================================================
--- idea.desktop	                        (rev 0)
+++ idea.desktop	2019-02-24 16:16:44 UTC (rev 435525)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=IntelliJ IDEA Community Edition
+Comment=Develop with pleasure!
+Exec=idea %f
+Icon=idea
+Terminal=false
+StartupNotify=true
+StartupWMClass=jetbrains-idea-ce
+Categories=Development;IDE;Java;

Copied: intellij-idea-community-edition/repos/community-x86_64/idea.sh (from rev 435524, intellij-idea-community-edition/trunk/idea.sh)
===================================================================
--- idea.sh	                        (rev 0)
+++ idea.sh	2019-02-24 16:16:44 UTC (rev 435525)
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# WARNING:
+# Running IntelliJ IDEA with java other than java 8
+# may cause various problems, such as Graddle import not working
+if [ -z "$IDEA_JDK" ] ; then
+  IDEA_JDK="/usr/lib/jvm/java-8-openjdk/"
+fi
+exec env IDEA_JDK="$IDEA_JDK" /usr/share/idea/bin/idea.sh "$@"
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list