new ebuild: net-misc/rustdesk-1.3.2

This commit is contained in:
Micha Glave 2024-11-21 15:38:39 +01:00
parent 0a2ae7eebf
commit 6752726d8e
2 changed files with 125 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST rustdesk-1.3.2.deb 19587000 BLAKE2B d24d24f489fab2748155b667ad7c048b6bb63e9b3d9a4246fe675c17b3bf139bb0b5d35b3254430da7628cb3e19922b870a8f04277672a0a93560125fc3e58e0 SHA512 8c2eb4d69b22d143ec4d5f50d8c17bb04ebd47af33e57193799e0f01aeab4feee2ccdef6546b424620b1a5683ee6447a7597710133137fd105931be1b9221288

View File

@ -0,0 +1,124 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd desktop xdg-utils
DESCRIPTION="RustDesk Client"
HOMEPAGE="https://rustdesk.com/"
SRC_URI="https://github.com/rustdesk/rustdesk/releases/download/${PV}/rustdesk-${PV}-x86_64.deb -> ${P}.deb"
S=${WORKDIR}
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
app-accessibility/at-spi2-core
app-arch/bzip2
app-arch/lz4
app-arch/xz-utils
app-arch/zstd
app-crypt/argon2
app-crypt/libmd
dev-libs/expat
dev-libs/fribidi
dev-libs/glib
dev-libs/json-c
dev-libs/libbsd
dev-libs/libffi
dev-libs/libgcrypt
dev-libs/libgpg-error
dev-libs/libpcre
dev-libs/openssl
dev-libs/wayland
media-gfx/graphite2
media-libs/flac
media-libs/fontconfig
media-libs/freetype
media-libs/harfbuzz
media-libs/libepoxy
media-libs/libglvnd
media-libs/libjpeg-turbo
media-libs/libogg
media-libs/libpng
media-libs/libsndfile
media-libs/libvorbis
media-libs/opus
media-sound/lame
media-sound/mpg123
net-libs/libasyncns
sys-apps/dbus
sys-apps/util-linux
sys-devel/gcc
sys-fs/cryptsetup
sys-fs/lvm2
sys-libs/libcap
sys-libs/zlib
x11-libs/cairo
x11-libs/gdk-pixbuf
x11-libs/gtk+
x11-libs/libX11
x11-libs/libXau
x11-libs/libXcomposite
x11-libs/libXcursor
x11-libs/libXdamage
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXi
x11-libs/libXinerama
x11-libs/libXrandr
x11-libs/libXrender
x11-libs/libXtst
x11-libs/libxcb
x11-libs/libxkbcommon
x11-libs/pango
x11-libs/pixman
x11-misc/xdotool"
RDEPEND="${DEPEND}"
src_unpack() {
unpack "${P}".deb || die "Cannot unpack!"
unpack "${WORKDIR}"/data.tar.xz
}
src_prepare() {
default
# Fix Path in Systemd-Unit
sed -i -e 's|/var/run/rustdesk.pid|/run/rustdesk.pid|' \
usr/share/rustdesk/files/systemd/rustdesk.service || die "sed failed!"
}
src_install() {
# Install Binary
exeinto /usr/lib/rustdesk
doexe usr/lib/rustdesk/rustdesk
dosym ../lib/rustdesk/rustdesk /usr/bin/rustdesk
# Install Library
exeinto /usr/lib/rustdesk/lib
doexe usr/lib/rustdesk/lib/*
insinto /usr/lib/rustdesk
doins -r usr/lib/rustdesk/data
# Install Miscellaneous
domenu usr/share/applications/rustdesk.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
# Install Systemd-Unit
systemd_dounit usr/share/rustdesk/files/systemd/rustdesk.service
}
pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}