blob: a5a11c44b5f1eeafe51d597a8929b0dcd72d8855 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Copyright 2026 Gurov <thuggerthugger1@duck.com>
# Distributed under the terms of the GNU General Public License v2
require freedesktop-desktop freedesktop-mime gtk-icon-cache \
systemd-service [ systemd_files=[ usr/share/rustdesk/files/systemd/rustdesk.service ] ]
SUMMARY="Remote desktop client and server"
HOMEPAGE="https://rustdesk.com/"
DOWNLOADS="https://github.com/rustdesk/rustdesk/releases/download/${PV}/${PNV}-x86_64.deb"
LICENCES="AGPL-3"
SLOT="0"
PLATFORMS="~amd64"
RESTRICT="mirror strip test"
DEPENDENCIES="
run:
dev-libs/glib:2
media-libs/gstreamer:1.0
media-plugins/gst-plugins-base:1.0
media-sound/pulseaudio
media/pipewire[gstreamer]
net-misc/curl
sys-apps/dbus
sys-apps/systemd
sys-libs/wayland
sys-sound/alsa-lib
x11-apps/xdotool
x11-libs/cairo
x11-libs/gdk-pixbuf:2.0
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libXfixes
x11-libs/libXtst
x11-libs/libva[X]
x11-libs/libxcb
x11-libs/libxkbcommon
x11-libs/pango
"
WORK="${WORKBASE}"
src_unpack() {
default
unpack ./data.tar.xz
}
src_prepare() {
default
edo sed -i '/^ExecStop=pkill -f /d; /^# kill --tray and --server both/d; /^# below two lines do not work/d; /^#ExecStop=/d' \
usr/share/rustdesk/files/systemd/rustdesk.service
edo sed -i "s@/usr/bin/rustdesk@/usr/$(exhost --target)/bin/rustdesk@" \
usr/share/rustdesk/files/systemd/rustdesk.service
}
src_compile() {
:
}
src_install() {
edo mkdir -p "${IMAGE}/usr/share/rustdesk"
edo cp -a usr/share/rustdesk/. "${IMAGE}/usr/share/rustdesk/"
insinto /usr/share/applications
doins usr/share/applications/{rustdesk,rustdesk-link}.desktop
insinto /usr/share/icons/hicolor/256x256/apps
doins usr/share/icons/hicolor/256x256/apps/rustdesk.png
insinto /usr/share/icons/hicolor/scalable/apps
doins usr/share/icons/hicolor/scalable/apps/rustdesk.svg
dodir /usr/$(exhost --target)/bin
dosym /usr/share/rustdesk/rustdesk /usr/$(exhost --target)/bin/rustdesk
install_systemd_files
}
pkg_postinst() {
freedesktop-mime_pkg_postinst
freedesktop-desktop_pkg_postinst
gtk-icon-cache_pkg_postinst
}
pkg_postrm() {
freedesktop-mime_pkg_postrm
freedesktop-desktop_pkg_postrm
gtk-icon-cache_pkg_postrm
}
|