1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 # Autogenerated by pycargoebuild 0.13.2
24 android_system_properties@0.1.5
34 async-compression@0.4.11
67 block-sys@0.1.0-beta.1
72 brotli-decompressor@2.5.1
79 bzip2-sys@0.1.11+1.0.8
101 cocoa-foundation@0.1.2
107 concurrent-queue@2.5.0
108 console_error_panic_hook@0.1.7
111 const_format_proc_macros@0.2.32
112 constant_time_eq@0.1.5
113 constant_time_eq@0.2.6
114 core-foundation-sys@0.8.6
115 core-foundation@0.9.4
116 core-graphics-types@0.1.3
124 crossbeam-channel@0.5.13
125 crossbeam-deque@0.8.5
126 crossbeam-epoch@0.9.18
127 crossbeam-queue@0.3.11
128 crossbeam-utils@0.8.20
137 dasp_interpolate@0.11.0
139 dasp_ring_buffer@0.11.0
145 dbus-crossroads@0.5.2
152 directories-next@2.0.0
174 enum-map-derive@0.17.0
177 enumflags2_derive@0.7.10
184 event-listener-strategy@0.5.2
198 flutter_rust_bridge@1.80.1
199 flutter_rust_bridge_macros@1.82.6
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.1
212 futures-channel@0.3.30
214 futures-executor@0.3.30
223 gdk-pixbuf-sys@0.18.0
227 gdkwayland-sys@0.18.0
247 gstreamer-app-sys@0.9.1
249 gstreamer-base-sys@0.9.1
250 gstreamer-base@0.16.5
252 gstreamer-video-sys@0.9.1
253 gstreamer-video@0.16.7
281 iana-time-zone-haiku@0.1.2
282 iana-time-zone@0.1.60
287 include_dir_macros@0.7.4
297 is_terminal_polyfill@1.70.0
313 libappindicator-sys@0.9.0
314 libappindicator@0.9.0
317 libgit2-sys@0.14.2+1.5.1
321 libpulse-binding@2.28.1
322 libpulse-simple-binding@2.28.1
323 libpulse-simple-sys@1.21.1
326 libsamplerate-sys@0.1.12
346 minimal-lexical@0.2.1
352 native-windows-gui@1.0.13
354 ndk-sys@0.4.1+23.1.7779620
355 ndk-sys@0.5.0+25.2.9519653
358 netlink-packet-core@0.5.0
359 netlink-packet-route@0.15.0
360 netlink-packet-utils@0.5.2
380 num_enum_derive@0.5.11
381 num_enum_derive@0.7.2
383 objc-foundation@0.1.1
384 objc-sys@0.2.0-beta.2
387 objc2-core-data@0.2.2
388 objc2-core-image@0.2.2
389 objc2-encode@2.0.0-pre.2
391 objc2-foundation@0.2.2
393 objc2-quartz-core@0.2.2
408 ordered-multimap@0.4.3
420 parking_lot_core@0.9.10
424 peeking_take_while@0.1.2
425 percent-encoding@2.3.1
431 pin-project-internal@1.1.5
432 pin-project-lite@0.2.14
446 proc-macro-crate@0.1.5
447 proc-macro-crate@1.3.1
448 proc-macro-crate@2.0.2
449 proc-macro-error-attr@1.0.4
450 proc-macro-error@1.0.4
453 protobuf-codegen@3.5.0
455 protobuf-support@3.5.0
458 qrcode-generator@4.1.9
480 raw-window-handle@0.5.2
481 raw-window-handle@0.6.2
501 rustc-demangle@0.1.24
507 rustls-native-certs@0.6.3
508 rustls-native-certs@0.7.0
511 rustls-pki-types@1.7.0
512 rustls-platform-verifier-android@0.1.0
513 rustls-platform-verifier@0.3.2
514 rustls-webpki@0.101.7
515 rustls-webpki@0.102.4
526 security-framework-sys@2.11.0
527 security-framework@2.10.0
536 serde_urlencoded@0.7.1
543 signal-hook-registry@1.4.2
554 static_assertions@1.1.0
555 strength_reduce@0.2.4
569 system-configuration-sys@0.5.0
570 system-configuration@0.5.1
573 system_shutdown@4.0.1
575 target-lexicon@0.12.14
576 target_build_utils@0.3.1
577 tauri-winrt-notification@0.1.3
582 thiserror-impl@1.0.61
593 tokio-native-tls@0.3.1
607 tracing-attributes@0.1.27
611 tree_magic_mini@3.1.5
622 unicode-normalization@0.1.23
623 unicode-segmentation@1.11.0
638 version-compare@0.0.10
639 version-compare@0.2.0
644 wasi@0.10.0+wasi-snapshot-preview1
645 wasi@0.11.0+wasi-snapshot-preview1
647 wasm-bindgen-backend@0.2.92
648 wasm-bindgen-futures@0.4.42
649 wasm-bindgen-macro-support@0.2.92
650 wasm-bindgen-macro@0.2.92
651 wasm-bindgen-shared@0.2.92
653 wayland-backend@0.3.6
654 wayland-client@0.31.5
655 wayland-protocols-wlr@0.3.3
656 wayland-protocols@0.32.3
657 wayland-scanner@0.31.4
668 winapi-i686-pc-windows-gnu@0.4.0
671 winapi-x86_64-pc-windows-gnu@0.4.0
677 windows-implement@0.52.0
678 windows-interface@0.52.0
680 windows-service@0.6.0
684 windows-targets@0.42.2
685 windows-targets@0.48.5
686 windows-targets@0.52.5
687 windows-version@0.1.1
696 windows_aarch64_gnullvm@0.42.2
697 windows_aarch64_gnullvm@0.48.5
698 windows_aarch64_gnullvm@0.52.5
699 windows_aarch64_msvc@0.32.0
700 windows_aarch64_msvc@0.34.0
701 windows_aarch64_msvc@0.42.2
702 windows_aarch64_msvc@0.48.5
703 windows_aarch64_msvc@0.52.5
704 windows_i686_gnu@0.32.0
705 windows_i686_gnu@0.34.0
706 windows_i686_gnu@0.42.2
707 windows_i686_gnu@0.48.5
708 windows_i686_gnu@0.52.5
709 windows_i686_gnullvm@0.52.5
710 windows_i686_msvc@0.32.0
711 windows_i686_msvc@0.34.0
712 windows_i686_msvc@0.42.2
713 windows_i686_msvc@0.48.5
714 windows_i686_msvc@0.52.5
715 windows_x86_64_gnu@0.32.0
716 windows_x86_64_gnu@0.34.0
717 windows_x86_64_gnu@0.42.2
718 windows_x86_64_gnu@0.48.5
719 windows_x86_64_gnu@0.52.5
720 windows_x86_64_gnullvm@0.42.2
721 windows_x86_64_gnullvm@0.48.5
722 windows_x86_64_gnullvm@0.52.5
723 windows_x86_64_msvc@0.32.0
724 windows_x86_64_msvc@0.34.0
725 windows_x86_64_msvc@0.42.2
726 windows_x86_64_msvc@0.48.5
727 windows_x86_64_msvc@0.52.5
732 wl-clipboard-rs@0.9.0
738 x11rb-protocol@0.12.0
739 x11rb-protocol@0.13.1
746 zerocopy-derive@0.6.6
747 zerocopy-derive@0.7.34
752 zstd-safe@5.0.2+zstd.1.5.2
754 zstd-sys@2.0.11+zstd.1.5.6
755 zstd@0.11.2+zstd.1.5.2
759 zvariant_derive@3.15.2
763 declare -A GIT_CRATES
=(
764 [android-wakelock
]='https://github.com/rustdesk-org/android-wakelock;d0292e5a367e627c4fa6f1ca6bdfad005dca7d90;android-wakelock-%commit%'
765 [arboard
]='https://github.com/rustdesk-org/arboard;a04bdb1b368a99691822c33bf0f7ed497d6a7a35;arboard-%commit%'
766 [cacao
]='https://github.com/clslaid/cacao;05e1536b0b43aaae308ec72c0eed703e875b7b95;cacao-%commit%'
767 [clipboard-master
]='https://github.com/rustdesk-org/clipboard-master;4fb62e5b62fb6350d82b571ec7ba94b3cd466695;clipboard-master-%commit%'
768 [confy
]='https://github.com/rustdesk-org/confy;83db9ec19a2f97e9718aef69e4fc5611bb382479;confy-%commit%'
769 [core-foundation-sys
]='https://github.com/madsmtm/core-foundation-rs;7d593d016175755e492a92ef89edca68ac3bd5cd;core-foundation-rs-%commit%/core-foundation-sys'
770 [core-foundation
]='https://github.com/madsmtm/core-foundation-rs;7d593d016175755e492a92ef89edca68ac3bd5cd;core-foundation-rs-%commit%/core-foundation'
771 [core-graphics-types
]='https://github.com/madsmtm/core-foundation-rs;7d593d016175755e492a92ef89edca68ac3bd5cd;core-foundation-rs-%commit%/core-graphics-types'
772 [core-graphics
]='https://github.com/madsmtm/core-foundation-rs;7d593d016175755e492a92ef89edca68ac3bd5cd;core-foundation-rs-%commit%/core-graphics'
773 [evdev
]='https://github.com/rustdesk-org/evdev;cec616e37790293d2cd2aa54a96601ed6b1b35a9;evdev-%commit%'
774 [hwcodec
]='https://github.com/rustdesk-org/hwcodec;6abd1898f3a03481ed0c038507b5218d6ea94267;hwcodec-%commit%'
775 [impersonate_system
]='https://github.com/rustdesk-org/impersonate-system;2f429010a5a10b1fe5eceb553c6672fd53d20167;impersonate-system-%commit%'
776 [keepawake
]='https://github.com/rustdesk-org/keepawake-rs;64d568586dd16551d02120e19668d2b0fec8e3c9;keepawake-rs-%commit%'
777 [machine-uid
]='https://github.com/rustdesk-org/machine-uid;381ff579c1dc3a6c54db9dfec47c44bcb0246542;machine-uid-%commit%'
778 [magnum-opus
]='https://github.com/rustdesk-org/magnum-opus;5cd2bf989c148662fa3a2d9d539a71d71fd1d256;magnum-opus-%commit%'
779 [pam-sys
]='https://github.com/rustdesk-org/pam-sys;3337c9bb9a9c68d7497ec8c93cad2368c26091b7;pam-sys-%commit%'
780 [pam
]='https://github.com/rustdesk-org/pam;7bfd25510202cd269292cbdd7c71f3977a6fd762;pam-%commit%'
781 [parity-tokio-ipc
]='https://github.com/rustdesk-org/parity-tokio-ipc;3623ec9ebef50c9b118e03b03df831008a4d1441;parity-tokio-ipc-%commit%'
782 [rdev
]='https://github.com/rustdesk-org/rdev;b3434caee84c92412b45a2f655a15ac5dad33488;rdev-%commit%'
783 [reqwest
]='https://github.com/rustdesk-org/reqwest;9cb758c9fb2f4edc62eb790acfd45a6a3da21ed3;reqwest-%commit%'
784 [rust-pulsectl
]='https://github.com/open-trade/pulsectl;5e68f4c2b7c644fa321984688602d71e8ad0bba3;pulsectl-%commit%'
785 [sciter-rs
]='https://github.com/open-trade/rust-sciter;5322f3a755a0e6bf999fbc60d1efc35246c0f821;rust-sciter-%commit%'
786 [sysinfo
]='https://github.com/rustdesk-org/sysinfo;90b1705d909a4902dbbbdea37ee64db17841077d;sysinfo-%commit%'
787 [tao-macros
]='https://github.com/rustdesk-org/tao;288c219cb0527e509590c2b2d8e7072aa9feb2d3;tao-%commit%/tao-macros'
788 [tao
]='https://github.com/rustdesk-org/tao;288c219cb0527e509590c2b2d8e7072aa9feb2d3;tao-%commit%'
789 [tfc
]='https://github.com/rustdesk-org/The-Fat-Controller;de9c8ba480f166a9fc90aaa47bb0e84b443ea9c6;The-Fat-Controller-%commit%'
790 [tokio-socks
]='https://github.com/rustdesk-org/tokio-socks;94e97c6d7c93b0bcbfa54f2dc397c1da0a6e43d3;tokio-socks-%commit%'
791 [tray-icon
]='https://github.com/tauri-apps/tray-icon;d4078696edba67b0ab42cef67e6a421a0332c96f;tray-icon-%commit%'
792 [wallpaper
]='https://github.com/rustdesk-org/wallpaper.rs;ce4a0cd3f58327c7cc44d15a63706fb0c022bacf;wallpaper.rs-%commit%'
793 [webm-sys
]='https://github.com/rustdesk-org/rust-webm;d2c4d3ac133c7b0e4c0f656da710b48391981e64;rust-webm-%commit%/src/sys'
794 [webm
]='https://github.com/rustdesk-org/rust-webm;d2c4d3ac133c7b0e4c0f656da710b48391981e64;rust-webm-%commit%'
795 [x11-clipboard
]='https://github.com/clslaid/x11-clipboard;5fc2e73bc01ada3681159b34cf3ea8f0d14cd904;x11-clipboard-%commit%'
796 [x11
]='https://github.com/bjornsnoen/x11-rs;c2e9bfaa7b196938f8700245564d8ac5d447786a;x11-rs-%commit%/x11'
799 LLVM_COMPAT
=( 17 18 19 )
800 RUST_MIN_VER
="1.75.0"
802 inherit cargo desktop llvm-r1 systemd xdg
804 DESCRIPTION
="An open-source remote desktop, and alternative to TeamViewer."
805 HOMEPAGE
="https://rustdesk.com/"
807 _HWCODEC_DEPS_COMMIT
="0.1.4"
808 _HWCODEC_EXTERNALS_COMMIT
="fd2ab190c333204d51173794e39fb03d3f2dbb43"
810 https://github.com/rustdesk/rustdesk/archive/refs/tags/${PV}.tar.gz
812 https://github.com/st0nie/gentoo-deps/releases/download/vcpkg/vcpkg-20240222.tar.gz
813 https://github.com/webmproject/libwebm/archive/refs/tags/libwebm-${_WEBM_PV}.tar.gz
814 https://github.com/21pages/deps/archive/refs/tags/${_HWCODEC_DEPS_COMMIT}.tar.gz
815 -> hwcodec-deps-${_HWCODEC_DEPS_COMMIT}.tar.gz
816 https://github.com/21pages/externals/archive/${_HWCODEC_EXTERNALS_COMMIT}.tar.gz
817 -> hwcodec-externals-${_HWCODEC_EXTERNALS_COMMIT}.tar.gz
818 https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.lnx/x64/libsciter-gtk.so
819 -> ${P}-libsciter-gtk.so
825 # Dependent crate licenses
827 Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0 CC0-1.0
828 GPL-2 GPL-3 GPL-3+ ISC MIT MPL-2.0 openssl SSLeay Unicode-DFS-2016 Unlicense ZLIB
834 IUSE
="wayland +hwaccel"
844 wayland? ( media-video/pipewire[gstreamer] )
845 hwaccel? ( x11-libs/libvdpau )
855 media-libs/gst-plugins-base
857 sys-devel/clang:${LLVM_SLOT}
858 sys-devel/llvm:${LLVM_SLOT}
863 /usr/share/${PN}/${PN}
864 /usr/share/${PN}/libsciter-gtk.so
874 "${FILESDIR}"/rust-sciter.
patch
881 cd ..
/rust-webm-
*/src
/sys || die
882 rm -rf libwebm
/ || die
883 ln -s "${WORKDIR}"/libwebm-libwebm-
*/ libwebm || die
885 local _HWCODEC_COMMIT
=`echo "${GIT_CRATES[hwcodec]}" | awk -F';' '{print $2}'`
886 rm -rf "${WORKDIR}"/hwcodec-
${_HWCODEC_COMMIT}/externals || die
887 ln -s "${WORKDIR}"/deps-${_HWCODEC_DEPS_COMMIT} "${WORKDIR}"/hwcodec-${_HWCODEC_COMMIT}/deps || die
888 ln -s "${WORKDIR}"/externals-${_HWCODEC_EXTERNALS_COMMIT} "${WORKDIR}"/hwcodec-${_HWCODEC_COMMIT}/externals || die
889 # HACK: this vcpkg bootstrap may be outdated, it needs to copy these libraries manually
890 cp -a "${WORKDIR}"/deps-${_HWCODEC_DEPS_COMMIT}/ffmpeg/linux-x86_64/{include,lib}\
891 "${WORKDIR}"/vcpkg/installed/x64-linux/ || die
896 local myfeatures=(hwcodec)
903 VCPKG_ROOT="$WORKDIR"/vcpkg cargo_src_compile
907 local rustdesk_dir="/usr
/share
/${PN}"
909 exeinto "${rustdesk_dir}"
910 insinto "${rustdesk_dir}"
911 doexe $(cargo_target_dir)/rustdesk
912 newins "${DISTDIR}/${P}-libsciter-gtk.so
" libsciter-gtk.so
913 rm src/ui/*.rs || die
914 newbin "${FILESDIR}/rustdesk.sh
" rustdesk
915 insinto "${rustdesk_dir}/src
"
918 newicon -s 32 $(realpath res/32x32.png || die) rustdesk.png
919 newicon -s 128 $(realpath res/128x128.png || die) rustdesk.png
920 newicon -s 256 $(realpath res/128x128@2x.png || die) rustdesk.png
922 domenu "${FILESDIR}"/rustdesk{,-link}.desktop
923 systemd_dounit "${FILESDIR}"/rustdesk.service