rustrover 2025.3.2

Cross-platform IDE for Rust from JetBrains

Не проверено
 1name=rustrover
 2version=2025.3.2
 3release=1
 4summary="Cross-platform IDE for Rust from JetBrains"
 5group="Development/Tools"
 6desc="RustRover is a cross-platform IDE that provides consistent experience \
 7on the Windows, macOS, and Linux operating systems. It also provides \
 8essential support for Python, popular web technologies (like JavaScript, \
 9XML, HTML, Markdown and others), and this also includes support for all the \
10other languages that are available through bundled and repository plugins.
11
12RustRover is free for non-commercial use. When using commercially, it is \
13available for a free 30-day evaluation. After that period monthly and yearly \
14subscription options exists for commercial use."
15
16maintainer="Maxim Slipenko <maks1ms@alt-gnome.ru>"
17architectures=("amd64")
18homepage="https://www.jetbrains.com/rust/"
19license=("custom")
20nonfree=1
21nonfree_url='https://www.jetbrains.com/legal/docs/toolbox/user/'
22nonfree_msg="RustRover is proprietary software by JetBrains. Use is subject to the JetBrains User Agreement."
23nonfree_msg_ru="RustRover является проприетарным программным обеспечением JetBrains. Использование регулируется Пользовательским соглашением JetBrains."
24appstream_app_id='com.jetbrains.RustRover'
25
26_jb_name=$name
27_jb_code="rustrover/RustRover"
28_jb_checksum=sha256:73a3e8bba6b6edcc0272f7292a78503add8499ffa2487c8e2102325d3101de11
29
30checksums=(
31	sha256:d34f87d7af95a28530d3acc8b8c6b4f23bd31772d594e1eb0a4689f791919297
32	$_jb_checksum
33)
34
35prepare() {
36    # RustRover-version -> rustrover-version
37    mv "RustRover-$version" "$_jb_name-$version"
38}
39
40##BEGIN:jb-template##
41disable_network=1
42
43sources=(
44	local:///$_jb_name.desktop
45	https://download-cdn.jetbrains.com/$_jb_code-$version.tar.gz
46)
47
48package() {
49	mkdir -p "$pkgdir/opt/$_jb_name"
50	cp -r "$srcdir/$_jb_name-$version/"* "$pkgdir/opt/$_jb_name"
51
52	install -dm 755 "$pkgdir/usr/bin/"
53	ln -s "/opt/$_jb_name/bin/$_jb_name" "$pkgdir/usr/bin/$_jb_name"
54
55	install-desktop "$_jb_name.desktop"
56	install -Dm644 "$pkgdir/opt/$_jb_name/bin/$_jb_name.png" "$pkgdir/usr/share/pixmaps/$_jb_name.png"
57}
58
59files() {
60	files-find \
61		"/opt/$_jb_name" \
62		"/opt/$_jb_name/**/*" \
63		"/usr/bin/$_jb_name" \
64		"/usr/share/applications/$_jb_name.desktop" \
65		"/usr/share/pixmaps/$_jb_name.png"
66}
67##END:jb-template##