2
0

88 lines
4.0 KiB
Bash
Raw Normal View History

2015-09-30 23:37:53 -05:00
# Maintainer: XavierCLL <xavier.corredor.llano (a) gmail.com>
2015-06-13 00:30:51 -05:00
pkgname=pycharm-professional
2017-05-23 14:55:19 -05:00
pkgver=2017.1.3
_pkgver=2017.1.3
2017-04-12 09:34:12 -05:00
pkgrel=1
2016-05-28 11:34:27 -05:00
pkgdesc="Powerful Python and Django IDE. Professional edition."
2015-06-13 00:30:51 -05:00
arch=('any')
options=('!strip')
url="http://www.jetbrains.com/pycharm/"
conflicts=('pycharm' 'pycharm-community')
provides=('pycharm')
2015-11-02 14:11:05 -05:00
license=('custom')
2015-06-13 00:30:51 -05:00
install=${pkgname}.install
2017-05-05 12:46:08 -05:00
backup=(opt/$pkgname/bin/pycharm.vmoptions opt/$pkgname/bin/pycharm64.vmoptions)
2017-03-17 11:02:23 -05:00
# for no-jdk:
# depends=('java-runtime-common' 'java-runtime>=8' 'ttf-font' 'libxtst' 'libxslt')
2017-02-13 22:56:50 -05:00
depends=('giflib' 'ttf-font' 'libxtst' 'libxslt')
makedepends=('python2-setuptools' 'python-setuptools')
2017-03-17 11:02:23 -05:00
# for no-jdk:
# source=(https://download.jetbrains.com/python/$pkgname-$_pkgver-no-jdk.tar.gz
2017-02-13 22:56:50 -05:00
source=(https://download.jetbrains.com/python/$pkgname-$_pkgver.tar.gz
2015-06-13 00:30:51 -05:00
'pycharm-professional.desktop'
'pycharm-professional.install'
'pycharm'
'charm.desktop'
'charm')
2016-03-30 12:55:59 -05:00
optdepends=('ipython2: For enhanced interactive Python shell v2 inside Pycharm'
'ipython: For enhanced interactive Python shell v3 inside Pycharm'
'openssh: For deployment and remote connections'
2015-09-30 23:37:53 -05:00
'python2-setuptools: Packages manager for Python 2, for project interpreter'
'python-setuptools: Packages manager for Python 3, for project interpreter'
'python2-coverage: For support code coverage measurement for Python 2'
'python-coverage: For support code coverage measurement for Python 3'
2016-03-27 00:31:12 -05:00
'cython2: For performance debugger in Python 2'
'cython: For performance debugger in Python 3'
2016-03-30 12:55:59 -05:00
'docker-machine: For support docker inside Pycharm'
'docker-compose: For support docker inside Pycharm'
2016-04-13 10:54:44 -05:00
'vagrant: For support virtualized development environments'
'python2-pytest: For support testing inside Pycharm with Python 2'
2016-04-13 11:03:23 -05:00
'python-pytest: For support testing inside Pycharm with Python 3'
2016-04-13 11:48:41 -05:00
'python2-tox: Python environments for testing tool with Python 2'
2017-02-08 18:06:16 -05:00
'python-tox: Python environments for testing tool with Python 3',
'jupyter: For support Jupyter Notebook')
2017-03-17 11:02:23 -05:00
# for no-jdk:
2017-05-23 14:59:13 -05:00
# sha256sums=('e53118815de5a32afb4c85518b15137097428a2982fbf7cc1de6a05574cf9601'
2017-05-23 14:55:19 -05:00
sha256sums=('0cb46ef439e3608162235efbb755844c62016356b32738123efd12500682eff3'
2015-06-13 00:30:51 -05:00
'016db1860a8b36d408c827f90aeb04b9d55cf21ea36788a9d8510cc54fae1c49'
2016-04-20 13:16:16 -05:00
'c1a74303d9e870918bd8068f761c8251b996694b1b96b3537fbca317679c4958'
'54603a788b4ecad5d0a92e5b7fe37a98979250d2b5fd7d037759b4254b0b1607'
'e1cf2a280d90a55710131bdf33f4026a427d10131ddd5c776a936ee1ecf5a6fb'
2017-03-24 14:19:20 -05:00
'0a753ef612fa689465aceb2e8279591bca9b8ffd02ee16da0b69d32388d81303')
2015-06-13 00:30:51 -05:00
package() {
# compile PyDev debugger used by PyCharm to speedup debugging
2016-11-23 11:49:18 -05:00
python2 $srcdir/pycharm-$_pkgver/helpers/pydev/setup_cython.py build_ext --inplace
python3 $srcdir/pycharm-$_pkgver/helpers/pydev/setup_cython.py build_ext --inplace
2015-06-13 00:30:51 -05:00
# base
cd $srcdir
install -dm 755 $pkgdir/opt/$pkgname
2016-11-23 11:49:18 -05:00
cp -dr --no-preserve=ownership $srcdir/pycharm-$_pkgver/* $pkgdir/opt/$pkgname
install -dm 755 $pkgdir/usr/share/{applications,pixmaps}
install -dm 755 $pkgdir/usr/bin/
install -Dm 644 $pkgdir/opt/$pkgname/bin/pycharm.png $pkgdir/usr/share/pixmaps/pycharm.png
2015-11-02 14:11:05 -05:00
# licenses
install -dm 755 $pkgdir/usr/share/licenses/$pkgname/
2016-11-23 11:49:18 -05:00
cp -dr --no-preserve=ownership $srcdir/pycharm-$_pkgver/license/* $pkgdir/usr/share/licenses/$pkgname
2015-06-13 00:30:51 -05:00
# exec
2016-03-30 12:55:59 -05:00
install -Dm 755 pycharm $pkgdir/usr/bin/
2015-06-13 00:30:51 -05:00
# app file desktop
2016-03-30 12:55:59 -05:00
install -Dm 644 pycharm-professional.desktop $pkgdir/usr/share/applications/
2015-06-13 00:30:51 -05:00
# install charm application - for edit a single file in Pycharm
install -Dm 755 charm $pkgdir/opt/pycharm-professional/bin/
install -Dm 644 charm.desktop $pkgdir/usr/share/applications/
2015-06-13 00:30:51 -05:00
# delete some conflicts files for i686
if [[ $CARCH = 'i686' ]]; then
rm -f $pkgdir/opt/$pkgname/bin/libyjpagent-linux64.so
rm -f $pkgdir/opt/$pkgname/bin/fsnotifier64
2015-06-13 00:30:51 -05:00
fi
}