linamh/net-misc/remotedesktopmanager/remotedesktopmanager-2024.2.1.1.ebuild

58 lines
1.4 KiB
Bash
Raw Normal View History

# Copyright 1999-2022 Gentoo Authors
2021-06-30 18:45:43 +02:00
# Distributed under the terms of the GNU General Public License v2
2023-07-20 20:28:34 +02:00
EAPI=8
2021-06-30 18:45:43 +02:00
2024-06-18 10:44:56 +02:00
inherit unpacker pam xdg-utils
2021-06-30 18:45:43 +02:00
DESCRIPTION="Remote DesktopManager"
HOMEPAGE="https://remotedesktopmanager.com"
2022-11-19 21:49:12 +01:00
#SRC_URI="https://cdn.devolutions.net/download/Linux/RDM/${PV}/RemoteDesktopManager.Free_${PV}_amd64.deb"
SRC_URI="https://cdn.devolutions.net/download/Linux/RDM/${PV}/RemoteDesktopManager_${PV}_amd64.deb"
2021-06-30 18:45:43 +02:00
LICENSE="Devolution"
2021-06-30 18:45:43 +02:00
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RESTRICT="strip mirror test"
2021-07-01 13:56:41 +02:00
DEPEND="|| ( sys-devel/base-gcc sys-devel/gcc )
sys-apps/dbus
sys-apps/systemd
sys-libs/glibc
2024-08-21 11:59:41 +02:00
sys-libs/pam
net-libs/webkit-gtk:4
virtual/libcrypt"
2021-06-30 18:45:43 +02:00
2021-07-01 13:56:41 +02:00
RDEPEND="${DEPEND}"
2021-06-30 18:45:43 +02:00
2021-07-01 13:56:41 +02:00
S=${WORKDIR}
2021-06-30 18:45:43 +02:00
src_unpack() {
unpack_deb ${A}
}
src_install() {
2022-11-19 21:49:12 +01:00
dodir /opt/devolutions/RemoteDesktopManager
cp -aR usr/lib/devolutions/RemoteDesktopManager/* "${D}/opt/devolutions/RemoteDesktopManager"
2021-06-30 18:45:43 +02:00
dodir /opt/bin
2022-11-19 21:49:12 +01:00
sed -e 's!usr/lib!opt!g' bin/remotedesktopmanager > "${D}/opt/bin/remotedesktopmanager"
chmod +x "${D}/opt/bin/remotedesktopmanager"
2021-06-30 18:45:43 +02:00
dodir /usr/share/applications
2024-06-18 10:44:56 +02:00
sed -e "s!usr/lib!opt!g" usr/share/applications/com.devolutions.remotedesktopmanager.desktop > "${D}/usr/share/applications/remotedesktopmanager.desktop"
2021-06-30 18:45:43 +02:00
dodir /usr/share/icons
cp -aR usr/share/icons/* "${D}/usr/share/icons"
}
2024-06-18 10:44:56 +02:00
pkg_postinst() {
xdg_desktop_database_update
}
pkg_postrm() {
xdg_desktop_database_update
}