goland 2026.1

Capable and Ergonomic Go IDE

Не проверено
 1name=goland
 2version=2026.1
 3release=1
 4summary="Capable and Ergonomic Go IDE"
 5group="Development/Tools"
 6desc="This is a community package of GoLand and not officially supported
 7by JetBrains s.r.o
 8
 9GoLand is a cross-platform IDE built specially for Go developers
10
11GoLand is available for a free 30-day evaluation. Monthly and yearly
12subscription options are available for companies and individual users.
13
14If you want to use the Go installation of your system, flatpak mounts your
15root directory into /var/run/host .You can set your GOROOT accordingly
16(e.g. /var/run/host/usr/lib/go)."
17maintainer="Oleg Shchavelev <oleg@alt-gnome.ru>"
18architectures=("amd64")
19homepage="http://www.jetbrains.com/go/"
20license=("custom")
21appstream_app_id="com.jetbrains.GoLand"
22nonfree=1
23nonfree_url="https://www.jetbrains.com/legal/docs/toolbox/user/"
24sfe_249_new_extractor=1
25
26provides=(
27	"goland"
28)
29conflicts=()
30
31_jb_name=$name
32_jb_code="go/goland"
33
34sources=(
35	"https://download-cdn.jetbrains.com/$_jb_code-$version.tar.gz"
36	"local:///$name.desktop"
37)
38
39checksums=(
40	sha256:f933919c3b28df4ee3f96c05b29a10459f083764c5cb2e6e52f2f28e23611e26
41	sha256:3d701a99f799353becb88a052bc8ff211a3f85c3cc8376ff45df6d5e161ff3cf
42)
43
44auto_req_filter=(
45	"ld-linux-aarch64\.so\.1"
46)
47
48auto_reqprov_method=dirty
49auto_req=1
50auto_prov=1
51
52disable_network=1
53
54prepare() {
55	mv GoLand-* $_jb_name
56}
57
58package() {
59	mkdir -p "$pkgdir/opt/$_jb_name"
60	cp -r "$srcdir/$_jb_name"* "$pkgdir/opt/"
61
62	install -dm 755 "$pkgdir/usr/bin/"
63	ln -s "/opt/$_jb_name/bin/$_jb_name" "$pkgdir/usr/bin/$_jb_name"
64
65	install-desktop "$_jb_name.desktop"
66	install -Dm644 "$pkgdir/opt/$_jb_name/bin/$_jb_name.png" "$pkgdir/usr/share/pixmaps/$_jb_name.png"
67}
68
69files() {
70	files-find \
71		"/opt/$_jb_name" \
72		"/opt/$_jb_name/**/*" \
73		"/usr/share/pixmaps/$_jb_name.png"
74
75	files-find-binary \
76		"$_jb_name"
77
78	files-find-desktop \
79		"$_jb_name.desktop"
80}