|
1 | 1 | # Template file for 'GoLand' |
2 | 2 | pkgname=GoLand |
3 | | -version=2021.3.3 |
| 3 | +version=2025.3 |
4 | 4 | revision=1 |
5 | | -archs="x86_64 aarch64" |
| 5 | +archs="x86_64" |
6 | 6 | depends="jetbrains-jdk-bin" |
7 | 7 | short_desc="Cross-platform IDE built specially for Go developers" |
8 | 8 | maintainer="Anton Afanasyev < [email protected]>" |
9 | 9 | license="custom:Commercial" |
10 | 10 | homepage="https://www.jetbrains.com/go" |
11 | 11 | distfiles="https://download.jetbrains.com/go/goland-${version}.tar.gz" |
12 | | -checksum=9d2b709703516eddeb7f4d6568a7de2e268de4258c7bc7787baee806fbaee4a3 |
| 12 | +checksum=6151856286ea546eb8af9aeb025772cee6bd57134f45494a818e8da20a8691c6 |
13 | 13 | repository=nonfree |
14 | 14 | restricted=yes |
15 | 15 | nopie=yes |
16 | | -python_version=3 |
17 | 16 |
|
18 | 17 | post_extract() { |
19 | | - # Remove files for other OSes and/or CPU architectures |
20 | | - # Darwin (this is not packaged for macOS) |
21 | | - rm -rf plugins/cwm-plugin/quiche-native/darwin-aarch64 |
22 | | - rm -rf plugins/cwm-plugin/quiche-native/darwin-x86-64 |
23 | | - rm -rf plugins/go/lib/dlv/mac |
24 | | - rm -rf plugins/go/lib/dlv/macarm |
25 | | - rm -rf plugins/go/lib/dlv/windows |
26 | | - rm -rf plugins/performanceTesting/bin/libyjpagent.dylib |
27 | | - rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_x86.dylib |
28 | | - rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_x86_64.dylib |
29 | | - # Windows (this is not packaged for Windows) |
30 | | - rm -rf plugins/cwm-plugin/quiche-native/win32-x86-64 |
31 | | - rm -rf plugins/performanceTesting/bin/yjpagent.dll |
32 | | - rm -rf plugins/performanceTesting/bin/yjpagent64.dll |
33 | | - rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_amd64.dll |
34 | | - rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_x86.dll |
35 | | - # x86 (unsupported after v2021.1) |
36 | | - rm -rf bin/goland.vmoptions |
37 | | - rm -rf lib/pty4j-native/linux/x86 |
38 | | - rm -rf plugins/performanceTesting/bin/libyjpagent.so |
39 | | - rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_linux_x86.so |
40 | | - # MIPS |
41 | | - rm -rf lib/pty4j-native/linux/mips64el |
42 | | - # ARM |
43 | | - rm -rf lib/pty4j-native/linux/arm |
44 | | - # PPC |
45 | | - rm -rf lib/pty4j-native/linux/ppc64le |
46 | | - |
47 | | - |
48 | | - case "$XBPS_TARGET_MACHINE" in |
49 | | - x86_64) |
50 | | - rm -rf lib/pty4j-native/linux/aarch64 |
51 | | - rm -rf plugins/go/lib/dlv/linuxarm |
52 | | - ;; |
53 | | - aarch64) |
54 | | - rm -rf lib/pty4j-native/linux/x86-64 |
55 | | - rm -rf plugins/go/lib/dlv/linux |
56 | | - rm -rf plugins/performanceTesting/bin/libyjpagent64.so |
57 | | - rm -rf plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_linux_amd64.so |
58 | | - ;; |
59 | | - esac |
| 18 | + # aarch64 |
| 19 | + rm -rf lib/pty4j-native/linux/aarch64 |
| 20 | + rm -rf plugins/go/lib/dlv/linuxarm |
| 21 | + rm -rf plugins/go-plugin/lib/dlv/linuxarm |
| 22 | + rm -rf lib/async-profiler/aarch64 |
60 | 23 | } |
61 | 24 |
|
62 | 25 | do_install() { |
63 | | - TARGET_PATH="usr/lib/${pkgname}" |
| 26 | + _target_path="usr/lib/${pkgname}" |
64 | 27 |
|
65 | 28 | vmkdir usr/bin |
66 | | - vmkdir ${TARGET_PATH} |
| 29 | + vmkdir ${_target_path} |
67 | 30 |
|
68 | 31 | local i |
69 | 32 | for i in license/* ; do |
70 | 33 | vlicense $i |
71 | 34 | done |
72 | 35 |
|
73 | 36 | local launcher_path="bin/goland.sh" |
74 | | - sed -i '1 s/$/\nGOLAND_JDK=${GOLAND_JDK:-${IDEA_JDK}}/' "${launcher_path}" |
75 | | - vcopy bin ${TARGET_PATH} |
76 | | - vcopy help ${TARGET_PATH} |
77 | | - vcopy lib ${TARGET_PATH} |
78 | | - vcopy plugins ${TARGET_PATH} |
79 | | - vcopy product-info.json ${TARGET_PATH} |
80 | | - vcopy build.txt ${TARGET_PATH} |
81 | | - |
82 | | - ln -sf "/${TARGET_PATH}/${launcher_path}" "${DESTDIR}/usr/bin/${pkgname}" |
| 37 | + vcopy bin ${_target_path} |
| 38 | + vcopy help ${_target_path} |
| 39 | + vcopy lib ${_target_path} |
| 40 | + vcopy jbr ${_target_path} |
| 41 | + vcopy plugins ${_target_path} |
| 42 | + vcopy product-info.json ${_target_path} |
| 43 | + vcopy build.txt ${_target_path} |
| 44 | + |
| 45 | + ln -sf "/${_target_path}/${launcher_path}" "${DESTDIR}/usr/bin/${pkgname}" |
83 | 46 | vdoc "${FILESDIR}/README.voidlinux" |
84 | 47 | } |
0 commit comments