Compare commits
No commits in common. "372da66d5e96162141cde87efafe82d29a7cd447" and "432512d847efe3afdf0f05bec7a9776da8b78a67" have entirely different histories.
372da66d5e
...
432512d847
3
.SRCINFO
3
.SRCINFO
@ -1,8 +1,9 @@
|
|||||||
pkgbase = pycharm-professional
|
pkgbase = pycharm-professional
|
||||||
pkgdesc = Python IDE for Professional Developers. Professional Edition
|
pkgdesc = Python IDE for Professional Developers. Professional Edition
|
||||||
pkgver = 2024.3
|
pkgver = 2024.3
|
||||||
pkgrel = 1.1
|
pkgrel = 1
|
||||||
url = https://www.jetbrains.com/pycharm/
|
url = https://www.jetbrains.com/pycharm/
|
||||||
|
install = pycharm-professional_x86_64.install
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
arch = x86_64_v3
|
arch = x86_64_v3
|
||||||
arch = aarch64
|
arch = aarch64
|
||||||
|
30
PKGBUILD
30
PKGBUILD
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
pkgname=pycharm-professional
|
pkgname=pycharm-professional
|
||||||
pkgver=2024.3
|
pkgver=2024.3
|
||||||
pkgrel=1.1
|
pkgrel=1
|
||||||
pkgdesc="Python IDE for Professional Developers. Professional Edition"
|
pkgdesc="Python IDE for Professional Developers. Professional Edition"
|
||||||
arch=('x86_64' 'x86_64_v3' 'aarch64')
|
arch=('x86_64' 'x86_64_v3' 'aarch64')
|
||||||
url='https://www.jetbrains.com/pycharm/'
|
url='https://www.jetbrains.com/pycharm/'
|
||||||
@ -49,33 +49,17 @@ optdepends=(
|
|||||||
'jupyter-server: For Jupyter notebooks and apps'
|
'jupyter-server: For Jupyter notebooks and apps'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if [[ "${CARCH}" == "x86_64" ]] || [[ "${CARCH}" == "x86_64_v3" ]] ; then
|
||||||
|
install=pycharm-professional_x86_64.install
|
||||||
|
elif [ "${CARCH}" == "aarch64" ]; then
|
||||||
|
install=pycharm-professional_aarch64.install
|
||||||
|
fi
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
# clean up for PyDev debugger
|
# clean up for PyDev debugger
|
||||||
find pycharm-${pkgver}/plugins/python-ce/helpers/pydev/ \( -name *.so -o -name *.pyd -o -name *.dll \) -delete
|
find pycharm-${pkgver}/plugins/python-ce/helpers/pydev/ \( -name *.so -o -name *.pyd -o -name *.dll \) -delete
|
||||||
}
|
}
|
||||||
|
|
||||||
build(){
|
|
||||||
cd "pycharm-${pkgver}"
|
|
||||||
echo ":: Building Cython speed-ups"
|
|
||||||
# compile PyDev debugger used by PyCharm to speedup debugging
|
|
||||||
python ./plugins/python-ce/helpers/pydev/setup_cython.py build_ext --inplace --force-cython
|
|
||||||
|
|
||||||
_gccarch='-m64'
|
|
||||||
if [ "${CARCH}" == "aarch64" ]; then
|
|
||||||
_gccarch='-march=armv8-a+crypto'
|
|
||||||
elif [[ "${CARCH}" =~ ^x86_64(|_v[0-9]+)$ ]]; then
|
|
||||||
_gccarch="-march=${CARCH//_/-}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# for attach debugger
|
|
||||||
pushd ./plugins/python-ce/helpers/pydev/pydevd_attach_to_process/linux_and_mac
|
|
||||||
g++ $_gccarch -shared -o ../attach_linux_amd64.so -fPIC -nostartfiles attach.cpp
|
|
||||||
popd
|
|
||||||
|
|
||||||
rm -rf ./plugins/python-ce/helpers/pydev/build
|
|
||||||
echo ":: Cython speed-ups done"
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
# licenses
|
# licenses
|
||||||
install -dm 755 "${pkgdir}/usr/share/licenses/${pkgname}/"
|
install -dm 755 "${pkgdir}/usr/share/licenses/${pkgname}/"
|
||||||
|
21
pycharm-professional_aarch64.install
Normal file
21
pycharm-professional_aarch64.install
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
post_install() {
|
||||||
|
echo ":: Building Cython speed-ups"
|
||||||
|
# compile PyDev debugger used by PyCharm to speedup debugging
|
||||||
|
python /opt/pycharm-professional/plugins/python-ce/helpers/pydev/setup_cython.py build_ext --inplace --force-cython
|
||||||
|
|
||||||
|
# for attach debugger
|
||||||
|
pushd /opt/pycharm-professional/plugins/python-ce/helpers/pydev/pydevd_attach_to_process/linux_and_mac
|
||||||
|
g++ -march=armv8-a+crypto -shared -o ../attach_linux_amd64.so -fPIC -nostartfiles attach.cpp
|
||||||
|
popd
|
||||||
|
|
||||||
|
rm -rf /opt/pycharm-professional/plugins/python-ce/helpers/pydev/build
|
||||||
|
echo ":: Cython speed-ups done"
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
post_install
|
||||||
|
}
|
||||||
|
|
||||||
|
post_remove() {
|
||||||
|
rm -rf /opt/pycharm-professional
|
||||||
|
}
|
21
pycharm-professional_x86_64.install
Normal file
21
pycharm-professional_x86_64.install
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
post_install() {
|
||||||
|
echo ":: Building Cython speed-ups"
|
||||||
|
# compile PyDev debugger used by PyCharm to speedup debugging
|
||||||
|
python /opt/pycharm-professional/plugins/python-ce/helpers/pydev/setup_cython.py build_ext --inplace --force-cython
|
||||||
|
|
||||||
|
# for attach debugger
|
||||||
|
pushd /opt/pycharm-professional/plugins/python-ce/helpers/pydev/pydevd_attach_to_process/linux_and_mac
|
||||||
|
g++ -m64 -shared -o ../attach_linux_amd64.so -fPIC -nostartfiles attach.cpp
|
||||||
|
popd
|
||||||
|
|
||||||
|
rm -rf /opt/pycharm-professional/plugins/python-ce/helpers/pydev/build
|
||||||
|
echo ":: Cython speed-ups done"
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
post_install
|
||||||
|
}
|
||||||
|
|
||||||
|
post_remove() {
|
||||||
|
rm -rf /opt/pycharm-professional
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user