blob: 31a041b33c4d19fae37d0a94c880ba97348e3642 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: Hao Zhang <hao@hao-zhang.com>
# Contributor: Dustin Falgout <dustin@falgout.us>
# Contributor: Gifts <gifts.antichat@gmail.com>
# Contributor: Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com>
pkgname=pycharm-eap
_buildver=243.21565.199
_pkgver=2024.3
_eap=false
pkgver="${_pkgver}.${_buildver}"
pkgrel=1
pkgdesc="Powerful Python and Django IDE, Early Access Program (EAP) build. Professional edition."
arch=("any")
options=("!strip")
url="https://www.jetbrains.com/pycharm/nextversion/"
license=("custom")
makedepends=('python-setuptools' 'cython')
optdepends=('ipython: For enhanced interactive Python shell inside Pycharm'
'openssh: For deployment and remote connections'
'python-setuptools: Packages manager for Python, for project interpreter'
'python-coverage: For support code coverage measurement for Python'
'docker-machine: For support docker inside Pycharm'
'docker-compose: For support docker inside Pycharm'
'vagrant: For support virtualized development environments'
'python-pytest: For support testing inside Pycharm with Python'
'python-tox: Python environments for testing tool with Python'
'jupyter-notebook: For support Jupyter Notebook')
provides=("pycharm" "pycharm-professional")
if [[ $_eap = false ]]; then
source=("https://download.jetbrains.com/python/pycharm-professional-${_pkgver}.tar.gz"
"${pkgname}.desktop")
else
source=("https://download.jetbrains.com/python/pycharm-professional-${_buildver}.tar.gz"
"${pkgname}.desktop")
fi
sha256sums=("142d7033f0548fd4f3e26bb2f8507f5d16048d9dfbe2f3a3de5246042e269ff7"
"b76e9b0a64a62d0775b4fa98313f6cbc2c3a2306da3715cb1f855dea5736ece0")
prepare() {
if [[ -d $srcdir/pycharm-${_pkgver} ]]; then
mv $srcdir/pycharm-${_pkgver} $srcdir/pycharm-${_buildver}
fi
}
build() {
# compile PyDev debugger used by PyCharm to speedup debugging
find $srcdir/pycharm-${_buildver}/plugins/python-ce/helpers/pydev/_pydevd_bundle/ \( -name *.c -o -name *.so -o -name *.pyd \) -delete
sed -i '1s/^/# cython: language_level=3\n/' $srcdir/pycharm-${_buildver}/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_cython.pxd
sed -i '/compatible_c/d' $srcdir/pycharm-${_buildver}/plugins/python-ce/helpers/pydev/setup_cython.py
python $srcdir/pycharm-${_buildver}/plugins/python-ce/helpers/pydev/setup_cython.py build_ext --inplace --force-cython
rm -rf $srcdir/pycharm-${_buildver}/plugins/python-ce/helpers/pydev/build/
find $srcdir/pycharm-${_buildver}/plugins/python-ce/helpers/pydev/ -name __pycache__ -exec rm -rf {} \;
}
package() {
cd "${srcdir}"
install -dm 755 \
"${pkgdir}/opt/${pkgname}" \
"${pkgdir}/usr/bin/" \
"${pkgdir}/usr/share/licenses/" \
"${pkgdir}/usr/share/applications/"
mv "${srcdir}"/pycharm-${_buildver}/license "${pkgdir}/usr/share/licenses/${pkgname}"
mv "${srcdir}"/pycharm-${_buildver}/* "${pkgdir}/opt/${pkgname}"
sed -i "s/Version=/Version=${pkgver}/g" "${pkgname}.desktop"
install -m755 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
ln -s "/opt/${pkgname}/bin/pycharm.sh" "${pkgdir}/usr/bin/pycharm-eap"
}
|