linamh/net-misc/remotedesktopmanager-free/remotedesktopmanager-free-2022.2.2.4.ebuild

48 lines
1.2 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
2022-02-23 19:17:30 +01:00
EAPI=6
2021-06-30 18:45:43 +02:00
inherit eutils unpacker pam
2021-06-30 18:45:43 +02:00
DESCRIPTION="Remote DesktopManager"
HOMEPAGE="https://remotedesktopmanager.com"
SRC_URI="https://cdn.devolutions.net/download/Linux/RDM/${PV}/RemoteDesktopManager.Free_${PV}_amd64.deb"
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
sys-libs/pam"
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() {
dodir /opt/devolutions/RemoteDesktopManager.Free
cp -aR usr/lib/devolutions/RemoteDesktopManager.Free/* "${D}/opt/devolutions/RemoteDesktopManager.Free"
dodir /opt/bin
sed -e 's!usr/lib!opt!g' bin/remotedesktopmanager.free > "${D}/opt/bin/remotedesktopmanager.free"
chmod +x "${D}/opt/bin/remotedesktopmanager.free"
2021-06-30 18:45:43 +02:00
dodir /usr/share/applications
sed -e "s!usr/lib!opt!g" usr/share/applications/remotedesktopmanager.free.desktop > "${D}/usr/share/applications/remotedesktopmanager.free.desktop"
dodir /usr/share/icons
cp -aR usr/share/icons/* "${D}/usr/share/icons"
}