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

Maxime Gauduin alucryd at archlinux.org
Thu Aug 16 16:32:44 UTC 2018


    Date: Thursday, August 16, 2018 @ 16:32:44
  Author: alucryd
Revision: 371987

upgpkg: pycharm-community-edition 2018.2.1-2

Added:
  pycharm-community-edition/trunk/pycharm.sh
Modified:
  pycharm-community-edition/trunk/PKGBUILD

------------+
 PKGBUILD   |   27 +++++++++++++++------------
 pycharm.sh |    9 +++++++++
 2 files changed, 24 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-16 15:59:52 UTC (rev 371986)
+++ PKGBUILD	2018-08-16 16:32:44 UTC (rev 371987)
@@ -5,26 +5,25 @@
 pkgname=pycharm-community-edition
 pkgver=2018.2.1
 _build=182.3911.33
-pkgrel=1
+pkgrel=2
 pkgdesc='Python IDE for Professional Developers'
 arch=('x86_64')
 url='http://www.jetbrains.com/pycharm/'
 license=('Apache')
-depends=('gcc-libs' 'giflib' 'glibc' 'java-runtime=8' 'sh' 'ttf-font')
+depends=('giflib' 'glibc' 'java-runtime=8' 'python' 'sh' 'ttf-font')
 optdepends=('ipython2: IPython integration for Python 2'
             'ipython: IPython integration for Python 3'
-            'python2: Python 2 support'
-            'python: Python 3 support')
+            'python2: Python 2 support')
 makedepends=('apache-ant' 'java-environment=8' 'java-openjfx'
              'python2-setuptools' 'python-setuptools')
-conflicts=('pycharm' 'pycharm-community' 'pycharm-professional')
-provides=('pycharm')
 source=("pycharm-${_build}.tar.gz::https://github.com/JetBrains/intellij-community/archive/pycharm/${_build}.tar.gz"
+        'pycharm-build.patch'
         'pycharm.desktop'
-        'pycharm-build.patch')
+        'pycharm.sh')
 sha256sums=('09e6805e436617f6e835458a0d649ad2aa05b834c7d071d4d68d5ddb282d39e1'
+            '3793e8125abb05b1580919017469ada2563a2e5972a8d74666557df60d270cfd'
             '28e0d3200c721e61831d8246eba8f72485d3c8379d10bfa75ccb5331b6749480'
-            '3793e8125abb05b1580919017469ada2563a2e5972a8d74666557df60d270cfd')
+            '448f90f35f1ae1de784b663e9fd539baf494a7c08a8a7e2efbd5e75c801da12e')
 
 prepare() {
   cd intellij-community-pycharm-${_build}
@@ -46,18 +45,22 @@
 
   python2 helpers/pydev/setup_cython.py build_ext --build-temp build --build-lib .
   python3 helpers/pydev/setup_cython.py build_ext --build-temp build --build-lib .
-  rm -rf bin/fsnotifier{,-arm} lib/libpty/linux/x86
 }
 
 package() {
   cd pycharm-community-${pkgver}
 
-  install -dm 755 "${pkgdir}"/usr/{bin,share/{applications,licenses,pixmaps,pycharm}}
+  # 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,pycharm}
   cp -dr --no-preserve='ownership' bin helpers lib plugins "${pkgdir}"/usr/share/pycharm/
   cp -dr --no-preserve='ownership' license "${pkgdir}"/usr/share/licenses/pycharm/
-  ln -s /usr/share/pycharm/bin/pycharm.sh $pkgdir/usr/bin/pycharm
   ln -s /usr/share/pycharm/bin/pycharm.png "${pkgdir}"/usr/share/pixmaps/
-  install -m 644 ../pycharm.desktop -t "${pkgdir}"/usr/share/applications/
+  install -Dm 644 ../pycharm.desktop -t "${pkgdir}"/usr/share/applications/
+  install -Dm 755 ../pycharm.sh "${pkgdir}"/usr/bin/pycharm
 }
 
 # vim: ts=2 sw=2 et:

Added: pycharm.sh
===================================================================
--- pycharm.sh	                        (rev 0)
+++ pycharm.sh	2018-08-16 16:32:44 UTC (rev 371987)
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ -z "$PYCHARM_JDK" ] ; then
+  PYCHARM_JDK="/usr/lib/jvm/java-8-openjdk/"
+fi
+exec env PYCHARM_JDK=$PYCHARM_JDK /usr/share/pycharm/bin/pycharm.sh $@
+
+# vim: ts=2 sw=2 et:
+


Property changes on: pycharm-community-edition/trunk/pycharm.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property



More information about the arch-commits mailing list