void-packages/srcpkgs/pycharm-community/template
2019-07-27 05:43:36 +02:00

50 lines
2 KiB
Bash

# Template file for 'pycharm-community'
pkgname=pycharm-community
version=2019.2
revision=1
archs="i686 x86_64"
depends="virtual?java-environment giflib libXtst"
short_desc="Python integrated development environment"
maintainer="Felix Van der Jeugt <felix.vanderjeugt@gmail.com>"
license="Apache-2.0"
homepage="https://www.jetbrains.org/pycharm/"
distfiles="https://download-cf.jetbrains.com/python/${pkgname}-${version}.tar.gz"
checksum=632015cc40d6e4a874ab5cbab0430ec1962cd3c4a7ff5f083ce88242180f784b
repository=nonfree
nopie=yes
case "$XBPS_TARGET_MACHINE" in
i686*) broken="/usr/lib/pycharm/bin/libdbm64.so: file format not recognized" ;;
esac
do_install() {
vmkdir usr/bin
vmkdir usr/share/doc/pycharm
vmkdir usr/lib/pycharm
mv -v bin lib plugins helpers ${DESTDIR}/usr/lib/pycharm
mv -v license ${DESTDIR}/usr/share/doc/pycharm
rm -vf ${DESTDIR}/usr/lib/pycharm/bin/fsnotifier-arm
for i in _pydevd_bundle _pydevd_frame_eval; do
rm -vf ${DESTDIR}/usr/lib/pycharm/helpers/pydev/"$i"/pydevd_*_darwin_*.so
rm -vf ${DESTDIR}/usr/lib/pycharm/helpers/pydev/"$i"/pydevd_*_win32_*.pyd
done
rm -vf ${DESTDIR}/usr/lib/pycharm/helpers/pydev/pydevd_attach_to_process/attach_*.dll
rm -vf ${DESTDIR}/usr/lib/pycharm/helpers/pydev/pydevd_attach_to_process/attach_*.dylib
rm -vf ${DESTDIR}/usr/lib/pycharm/helpers/pydev/third_party/wrapped_for_pydev/ctypes/_ctypes.dll
rm -vf ${DESTDIR}/usr/lib/pycharm/lib/pty4j-native/linux/ppc64le/libpty.so
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
rm -vf ${DESTDIR}/usr/lib/pycharm/bin/fsnotifier
rm -vf ${DESTDIR}/usr/lib/pycharm/helpers/pydev/pydevd_attach_to_process/attach_linux_x86.so
rm -vf ${DESTDIR}/usr/lib/pycharm/lib/pty4j-native/linux/x86/libpty.so
else
rm -vf ${DESTDIR}/usr/lib/pycharm/bin/fsnotifier64
rm -vf ${DESTDIR}/usr/lib/pycharm/helpers/pydev/pydevd_attach_to_process/attach_linux_amd64.so
rm -vf ${DESTDIR}/usr/lib/pycharm/lib/pty4j-native/linux/x86_64/libpty.so
fi
ln -sf /usr/lib/pycharm/bin/pycharm.sh ${DESTDIR}/usr/bin/pycharm
vinstall ${FILESDIR}/pycharm.desktop 644 usr/share/applications
}