1 # Copyright 2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
22 android_system_properties@0.1.5
36 async-compression@0.4.5
67 block-sys@0.1.0-beta.1
71 brotli-decompressor@2.5.1
79 bzip2-sys@0.1.11+1.0.8
100 cocoa-foundation@0.1.2
106 concurrent-queue@2.3.0
107 console_error_panic_hook@0.1.7
110 const_format_proc_macros@0.2.32
111 constant_time_eq@0.1.5
112 constant_time_eq@0.2.6
114 core-foundation-sys@0.8.4
115 core-foundation@0.9.3
116 core-graphics-types@0.1.2
124 crossbeam-channel@0.5.8
125 crossbeam-deque@0.8.3
126 crossbeam-epoch@0.9.15
127 crossbeam-queue@0.3.8
128 crossbeam-utils@0.8.16
137 dasp_interpolate@0.11.0
139 dasp_ring_buffer@0.11.0
145 dbus-crossroads@0.5.2
154 directories-next@2.0.0
176 enum-map-derive@0.14.0
179 enumflags2_derive@0.7.8
198 flutter_rust_bridge@1.80.1
199 flutter_rust_bridge_macros@1.82.3
202 foreign-types-macros@0.2.3
203 foreign-types-shared@0.1.1
204 foreign-types-shared@0.3.1
207 form_urlencoded@1.2.0
212 futures-channel@0.3.29
214 futures-executor@0.3.29
222 gdk-pixbuf-sys@0.18.0
226 gdkwayland-sys@0.18.0
245 gstreamer-app-sys@0.9.1
247 gstreamer-base-sys@0.9.1
248 gstreamer-base@0.16.5
250 gstreamer-video-sys@0.9.1
251 gstreamer-video@0.16.7
277 iana-time-zone-haiku@0.1.2
278 iana-time-zone@0.1.58
282 include_dir_macros@0.7.3
308 libappindicator-sys@0.9.0
309 libappindicator@0.9.0
312 libgit2-sys@0.14.2+1.5.1
316 libpulse-binding@2.28.1
317 libpulse-simple-binding@2.28.1
318 libpulse-simple-sys@1.21.1
320 libsamplerate-sys@0.1.12
340 minimal-lexical@0.2.1
348 ndk-sys@0.4.1+23.1.7779620
350 netlink-packet-core@0.5.0
351 netlink-packet-route@0.15.0
352 netlink-packet-utils@0.5.2
372 num_enum_derive@0.5.11
374 objc-foundation@0.1.1
375 objc-sys@0.2.0-beta.2
376 objc2-encode@2.0.0-pre.2
390 ordered-multimap@0.4.3
403 parking_lot_core@0.9.9
407 peeking_take_while@0.1.2
408 percent-encoding@2.3.0
414 pin-project-internal@1.1.3
415 pin-project-lite@0.2.13
428 proc-macro-crate@0.1.5
429 proc-macro-crate@1.3.1
430 proc-macro-crate@2.0.0
431 proc-macro-error-attr@1.0.4
432 proc-macro-error@1.0.4
435 protobuf-codegen@3.3.0
437 protobuf-support@3.3.0
440 qrcode-generator@4.1.9
463 raw-window-handle@0.5.2
464 raw-window-handle@0.6.0
486 rustc-demangle@0.1.23
492 rustls-native-certs@0.6.3
494 rustls-webpki@0.101.7
506 security-framework-sys@2.9.1
507 security-framework@2.9.2
516 serde_urlencoded@0.7.1
523 signal-hook-registry@1.4.1
535 static_assertions@1.1.0
537 strength_reduce@0.2.4
550 system-configuration-sys@0.5.0
551 system-configuration@0.5.1
554 system_shutdown@4.0.1
556 target-lexicon@0.12.12
557 target_build_utils@0.3.1
558 tauri-winrt-notification@0.1.3
563 thiserror-impl@1.0.50
574 tokio-native-tls@0.3.1
589 tracing-attributes@0.1.27
593 tree_magic_mini@3.0.3
602 unicode-normalization@0.1.22
603 unicode-segmentation@1.10.1
619 version-compare@0.0.10
620 version-compare@0.1.1
627 wasi@0.10.0+wasi-snapshot-preview1
628 wasi@0.11.0+wasi-snapshot-preview1
629 wasm-bindgen-backend@0.2.87
630 wasm-bindgen-futures@0.4.37
631 wasm-bindgen-macro-support@0.2.87
632 wasm-bindgen-macro@0.2.87
633 wasm-bindgen-shared@0.2.87
635 wayland-backend@0.3.2
636 wayland-client@0.31.1
637 wayland-protocols-wlr@0.2.0
638 wayland-protocols@0.31.0
639 wayland-scanner@0.31.0
650 winapi-i686-pc-windows-gnu@0.4.0
653 winapi-x86_64-pc-windows-gnu@0.4.0
658 windows-implement@0.52.0
659 windows-interface@0.52.0
660 windows-service@0.6.0
665 windows-targets@0.42.2
666 windows-targets@0.48.5
667 windows-targets@0.52.0
668 windows-version@0.1.0
676 windows_aarch64_gnullvm@0.42.2
677 windows_aarch64_gnullvm@0.48.5
678 windows_aarch64_gnullvm@0.52.0
679 windows_aarch64_msvc@0.32.0
680 windows_aarch64_msvc@0.34.0
681 windows_aarch64_msvc@0.42.2
682 windows_aarch64_msvc@0.48.5
683 windows_aarch64_msvc@0.52.0
684 windows_i686_gnu@0.32.0
685 windows_i686_gnu@0.34.0
686 windows_i686_gnu@0.42.2
687 windows_i686_gnu@0.48.5
688 windows_i686_gnu@0.52.0
689 windows_i686_msvc@0.32.0
690 windows_i686_msvc@0.34.0
691 windows_i686_msvc@0.42.2
692 windows_i686_msvc@0.48.5
693 windows_i686_msvc@0.52.0
694 windows_x86_64_gnu@0.32.0
695 windows_x86_64_gnu@0.34.0
696 windows_x86_64_gnu@0.42.2
697 windows_x86_64_gnu@0.48.5
698 windows_x86_64_gnu@0.52.0
699 windows_x86_64_gnullvm@0.42.2
700 windows_x86_64_gnullvm@0.48.5
701 windows_x86_64_gnullvm@0.52.0
702 windows_x86_64_msvc@0.32.0
703 windows_x86_64_msvc@0.34.0
704 windows_x86_64_msvc@0.42.2
705 windows_x86_64_msvc@0.48.5
706 windows_x86_64_msvc@0.52.0
712 wl-clipboard-rs@0.8.0
717 x11rb-protocol@0.12.0
723 zerocopy-derive@0.6.5
724 zerocopy-derive@0.7.18
728 zstd-safe@5.0.2+zstd.1.5.2
730 zstd-sys@2.0.9+zstd.1.5.5
731 zstd@0.11.2+zstd.1.5.2
735 zvariant_derive@3.15.0
739 declare -A GIT_CRATES
=(
740 [amf
]='https://github.com/21pages/gpucodec;90800ce41bee33cd898ec36a86c2e32a407e3f02;gpucodec-%commit%/amf'
741 [android-wakelock
]='https://github.com/21pages/android-wakelock;d0292e5a367e627c4fa6f1ca6bdfad005dca7d90;android-wakelock-%commit%'
742 [cacao
]='https://github.com/clslaid/cacao;05e1536b0b43aaae308ec72c0eed703e875b7b95;cacao-%commit%'
743 [confy
]='https://github.com/open-trade/confy;7855cd3c32b1a60b44e5076ee8f6b4131da10350;confy-%commit%'
744 [core-foundation-sys
]='https://github.com/madsmtm/core-foundation-rs;7d593d016175755e492a92ef89edca68ac3bd5cd;core-foundation-rs-%commit%/core-foundation-sys'
745 [core-foundation
]='https://github.com/madsmtm/core-foundation-rs;7d593d016175755e492a92ef89edca68ac3bd5cd;core-foundation-rs-%commit%/core-foundation'
746 [core-graphics-types
]='https://github.com/madsmtm/core-foundation-rs;7d593d016175755e492a92ef89edca68ac3bd5cd;core-foundation-rs-%commit%/core-graphics-types'
747 [core-graphics
]='https://github.com/madsmtm/core-foundation-rs;7d593d016175755e492a92ef89edca68ac3bd5cd;core-foundation-rs-%commit%/core-graphics'
748 [evdev
]='https://github.com/fufesou/evdev;cec616e37790293d2cd2aa54a96601ed6b1b35a9;evdev-%commit%'
749 [gpu_common
]='https://github.com/21pages/gpucodec;90800ce41bee33cd898ec36a86c2e32a407e3f02;gpucodec-%commit%/common'
750 [gpucodec
]='https://github.com/21pages/gpucodec;90800ce41bee33cd898ec36a86c2e32a407e3f02;gpucodec-%commit%/codec'
751 [hwcodec
]='https://github.com/21pages/hwcodec;da8aec8e8abb6a5506e027484023e6e2ad1f47eb;hwcodec-%commit%'
752 [impersonate_system
]='https://github.com/21pages/impersonate-system;2f429010a5a10b1fe5eceb553c6672fd53d20167;impersonate-system-%commit%'
753 [keepawake
]='https://github.com/rustdesk-org/keepawake-rs;ad94454a75cf1ff9e95e217dee9dd6a378bf625e;keepawake-rs-%commit%'
754 [machine-uid
]='https://github.com/21pages/machine-uid;381ff579c1dc3a6c54db9dfec47c44bcb0246542;machine-uid-%commit%'
755 [magnum-opus
]='https://github.com/rustdesk-org/magnum-opus;5cd2bf989c148662fa3a2d9d539a71d71fd1d256;magnum-opus-%commit%'
756 [mouce
]='https://github.com/fufesou/mouce;ed83800d532b95d70e39915314f6052aa433e9b9;mouce-%commit%'
757 [nv
]='https://github.com/21pages/gpucodec;90800ce41bee33cd898ec36a86c2e32a407e3f02;gpucodec-%commit%/nv'
758 [pam
]='https://github.com/fufesou/pam;10da2cbbabe32cbc9de22a66abe44738e7ec0ea0;pam-%commit%'
759 [parity-tokio-ipc
]='https://github.com/rustdesk-org/parity-tokio-ipc;f2d1fcf8fb002335d9a62bec308559d40698694d;parity-tokio-ipc-%commit%'
760 [rdev
]='https://github.com/fufesou/rdev;b3434caee84c92412b45a2f655a15ac5dad33488;rdev-%commit%'
761 [reqwest
]='https://github.com/rustdesk-org/reqwest;9cb758c9fb2f4edc62eb790acfd45a6a3da21ed3;reqwest-%commit%'
762 [rust-pulsectl
]='https://github.com/open-trade/pulsectl;5e68f4c2b7c644fa321984688602d71e8ad0bba3;pulsectl-%commit%'
763 [sciter-rs
]='https://github.com/open-trade/rust-sciter;fab913b7c2e779b05c249b0c5de5a08759b2c15d;rust-sciter-%commit%'
764 [sysinfo
]='https://github.com/rustdesk-org/sysinfo;f45dcc6510d48c3a1401c5a33eedccc8899f67b2;sysinfo-%commit%'
765 [tao-macros
]='https://github.com/rustdesk-org/tao;1a813dc8788735ff0ad427ffa71394aa02d16709;tao-%commit%/tao-macros'
766 [tao
]='https://github.com/rustdesk-org/tao;1a813dc8788735ff0ad427ffa71394aa02d16709;tao-%commit%'
767 [tfc
]='https://github.com/fufesou/The-Fat-Controller;9dd86151525fd010dc93f6bc9b6aedd1a75cc342;The-Fat-Controller-%commit%'
768 [tokio-socks
]='https://github.com/open-trade/tokio-socks;14a5c2564fa20a2765ea53d03c573ee2b7e20421;tokio-socks-%commit%'
769 [tray-icon
]='https://github.com/tauri-apps/tray-icon;b8dbd42c6f94a29f34b0a0daa619486277185512;tray-icon-%commit%'
770 [vpl
]='https://github.com/21pages/gpucodec;90800ce41bee33cd898ec36a86c2e32a407e3f02;gpucodec-%commit%/vpl'
771 [wallpaper
]='https://github.com/21pages/wallpaper.rs;ce4a0cd3f58327c7cc44d15a63706fb0c022bacf;wallpaper.rs-%commit%'
772 [webm-sys
]='https://github.com/21pages/rust-webm;d2c4d3ac133c7b0e4c0f656da710b48391981e64;rust-webm-%commit%/src/sys'
773 [webm
]='https://github.com/21pages/rust-webm;d2c4d3ac133c7b0e4c0f656da710b48391981e64;rust-webm-%commit%'
774 [x11-clipboard
]='https://github.com/clslaid/x11-clipboard;5fc2e73bc01ada3681159b34cf3ea8f0d14cd904;x11-clipboard-%commit%'
775 [x11
]='https://github.com/bjornsnoen/x11-rs;c2e9bfaa7b196938f8700245564d8ac5d447786a;x11-rs-%commit%/x11'
778 inherit cargo systemd desktop xdg
780 DESCRIPTION
="Open source virtual / remote desktop infrastructure for everyone"
781 HOMEPAGE
="https://rustdesk.com/"
782 EGIT_COMMIT
="914da2b86f73a314027833b1940784d657826503"
783 _THIDR_PARTY_COMMIT
="20ee6a80eab87a1cec585d2a4365b14be879de49"
784 _SCRITER_COMMIT
="0298f1b34e9a0ff1dffb889d82c506a5da8bfb1e"
787 https://github.com/rustdesk/rustdesk/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
788 https://github.com/st0nie/gentoo-deps/releases/download/vcpkg/vcpkg-20240222.tar.gz
789 https://github.com/c-smile/sciter-sdk/raw/${_SCRITER_COMMIT}/bin.lnx/x64/libsciter-gtk.so -> ${P}-libsciter-gtk.so
790 https://github.com/webmproject/libwebm/archive/refs/tags/libwebm-${_WEBM_PV}.tar.gz
799 IUSE
="wayland +hwaccel"
809 wayland? ( media-video/pipewire[gstreamer] )
810 hwaccel? ( x11-libs/libvdpau )
821 media-libs/gst-plugins-base
822 >=virtual/rust-1.75.0
825 /usr/share/${PN}/${PN}
826 /usr/share/${PN}/libsciter-gtk.so
829 S
="${WORKDIR}/rustdesk-${EGIT_COMMIT}"
833 cd ..
/rust-webm-
*/src
/sys || die
834 rm -rf libwebm
/ || die
835 ln -s ${WORKDIR}/libwebm-libwebm-
*/ libwebm || die
840 local myfeatures
=(hwcodec
)
847 VCPKG_ROOT
="$WORKDIR"/vcpkg cargo_src_compile
851 local rustdesk_dir
="/usr/share/${PN}"
853 exeinto
"${rustdesk_dir}"
854 insinto
"${rustdesk_dir}"
855 doexe target
/release
/rustdesk
856 newins
"${DISTDIR}/${P}-libsciter-gtk.so" libsciter-gtk.so
857 rm src
/ui
/*.rs || die
858 newbin
"${FILESDIR}/rustdesk.sh" rustdesk
859 insinto
"${rustdesk_dir}/src"
862 newicon
-s 32 $
(realpath res
/32x32.png || die
) rustdesk.png
863 newicon
-s 128 $
(realpath res
/128x128.png || die
) rustdesk.png
864 newicon
-s 256 $
(realpath res
/128x128@
2x.png || die
) rustdesk.png
866 domenu
"${FILESDIR}"/rustdesk
{,-link}.desktop
867 systemd_dounit
"${FILESDIR}"/rustdesk.service