Skip to content

Commit 28f1485

Browse files
ctrleonclassabbyamp
authored andcommitted
GoLand: update to 2025.3
The source archive only includes aarch64 and x86_64 files. Remove aarch64 files as jetbrains-jdk-bin supports only x86_64. Install the bundled JetBrains Runtime (JBR) to avoid Java runtime version errors.
1 parent 8af4779 commit 28f1485

File tree

1 file changed

+19
-56
lines changed

1 file changed

+19
-56
lines changed

srcpkgs/GoLand/template

Lines changed: 19 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,47 @@
11
# Template file for 'GoLand'
22
pkgname=GoLand
3-
version=2021.3.3
3+
version=2025.3
44
revision=1
5-
archs="x86_64 aarch64"
5+
archs="x86_64"
66
depends="jetbrains-jdk-bin"
77
short_desc="Cross-platform IDE built specially for Go developers"
88
maintainer="Anton Afanasyev <[email protected]>"
99
license="custom:Commercial"
1010
homepage="https://www.jetbrains.com/go"
1111
distfiles="https://download.jetbrains.com/go/goland-${version}.tar.gz"
12-
checksum=9d2b709703516eddeb7f4d6568a7de2e268de4258c7bc7787baee806fbaee4a3
12+
checksum=6151856286ea546eb8af9aeb025772cee6bd57134f45494a818e8da20a8691c6
1313
repository=nonfree
1414
restricted=yes
1515
nopie=yes
16-
python_version=3
1716

1817
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
6023
}
6124

6225
do_install() {
63-
TARGET_PATH="usr/lib/${pkgname}"
26+
_target_path="usr/lib/${pkgname}"
6427

6528
vmkdir usr/bin
66-
vmkdir ${TARGET_PATH}
29+
vmkdir ${_target_path}
6730

6831
local i
6932
for i in license/* ; do
7033
vlicense $i
7134
done
7235

7336
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}"
8346
vdoc "${FILESDIR}/README.voidlinux"
8447
}

0 commit comments

Comments
 (0)