56 lines
1.3 KiB
Bash
56 lines
1.3 KiB
Bash
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit unpacker pam xdg-utils
|
|
|
|
DESCRIPTION="Remote DesktopManager"
|
|
HOMEPAGE="https://remotedesktopmanager.com"
|
|
|
|
#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"
|
|
|
|
LICENSE="Devolution"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
IUSE=""
|
|
|
|
RESTRICT="strip mirror test"
|
|
|
|
DEPEND="|| ( sys-devel/base-gcc sys-devel/gcc )
|
|
sys-apps/dbus
|
|
sys-apps/systemd
|
|
sys-libs/glibc
|
|
sys-libs/pam"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
S=${WORKDIR}
|
|
|
|
src_unpack() {
|
|
unpack_deb ${A}
|
|
}
|
|
|
|
src_install() {
|
|
dodir /opt/devolutions/RemoteDesktopManager
|
|
cp -aR usr/lib/devolutions/RemoteDesktopManager/* "${D}/opt/devolutions/RemoteDesktopManager"
|
|
dodir /opt/bin
|
|
sed -e 's!usr/lib!opt!g' bin/remotedesktopmanager > "${D}/opt/bin/remotedesktopmanager"
|
|
chmod +x "${D}/opt/bin/remotedesktopmanager"
|
|
dodir /usr/share/applications
|
|
sed -e "s!usr/lib!opt!g" usr/share/applications/com.devolutions.remotedesktopmanager.desktop > "${D}/usr/share/applications/remotedesktopmanager.desktop"
|
|
dodir /usr/share/icons
|
|
cp -aR usr/share/icons/* "${D}/usr/share/icons"
|
|
}
|
|
|
|
pkg_postinst() {
|
|
xdg_desktop_database_update
|
|
}
|
|
|
|
pkg_postrm() {
|
|
xdg_desktop_database_update
|
|
} |