From fe131fd6e2c40182265f1fe4a810ef86de7611f5 Mon Sep 17 00:00:00 2001 From: Anton Afanasyev <1157248+2asoft@users.noreply.github.com> Date: Thu, 5 Aug 2021 22:48:55 -0700 Subject: [PATCH] CLion: Fix removal of files for unsupported OS/archs --- srcpkgs/CLion/template | 43 +++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/srcpkgs/CLion/template b/srcpkgs/CLion/template index f2ab575cea34..a0bc5780731d 100644 --- a/srcpkgs/CLion/template +++ b/srcpkgs/CLion/template @@ -1,8 +1,8 @@ # Template file for 'CLion' pkgname=CLion version=2021.2 -revision=1 -archs="i686 x86_64" +revision=2 +archs="x86_64 aarch64" wrksrc="clion-${version}" depends="jetbrains-jdk-bin giflib libXtst" short_desc="Smart cross-platform IDE for C and C++" @@ -25,36 +25,37 @@ desc_option_bundled_gdb="Install bundled GDB" desc_option_bundled_lldb="Install bundled LLDB" post_extract() { - # Remove files for other CPU architectures - rm -rf bin/fsnotifier-arm - rm -rf lib/pty4j-native/linux/aarch64 - rm -rf lib/pty4j-native/linux/arm - rm -rf lib/pty4j-native/linux/mips64el - rm -rf lib/pty4j-native/linux/ppc64le + # Remove files for other OSes and/or CPU architectures + # Darwin (this is not packaged for macOS) rm -rf plugins/cwm-plugin/quiche-native/darwin-aarch64 rm -rf plugins/cwm-plugin/quiche-native/darwin-x86-64 - rm -rf plugins/cwm-plugin/quiche-native/win32-x86-64 rm -rf plugins/performanceTesting/bin/libyjpagent.dylib + rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_x86.dylib + rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_x86_64.dylib + # Windows (this is not packaged for Windows) + rm -rf plugins/cwm-plugin/quiche-native/win32-x86-64 rm -rf plugins/performanceTesting/bin/yjpagent.dll rm -rf plugins/performanceTesting/bin/yjpagent64.dll rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_amd64.dll rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_x86.dll - rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_x86.dylib - rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_x86_64.dylib + # x86 (unsupported after v2021.1) + rm -rf bin/clion.vmoptions + rm -rf lib/pty4j-native/linux/x86 + rm -rf plugins/performanceTesting/bin/libyjpagent.so + rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_linux_x86.so + # MIPS + rm -rf lib/pty4j-native/linux/mips64el + # ARM + rm -rf lib/pty4j-native/linux/arm + # PPC + rm -rf lib/pty4j-native/linux/ppc64le + case "$XBPS_TARGET_MACHINE" in x86_64) - rm -rf bin/fsnotifier - rm -rf bin/clion.vmoptions - rm -rf bin/libyjpagent-linux.so - rm -rf lib/pty4j-native/linux/x86 - rm -rf plugins/performanceTesting/bin/libyjpagent.so - rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_linux_x86.so + rm -rf lib/pty4j-native/linux/aarch64 ;; - i686) - rm -rf bin/fsnotifier64 - rm -rf bin/clion64.vmoptions - rm -rf bin/libyjpagent-linux64.so + aarch64) rm -rf lib/pty4j-native/linux/x86-64 rm -rf plugins/performanceTesting/bin/libyjpagent64.so rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_linux_amd64.so