Files
linamh/app-emulation/remotebox/remotebox-3.7.ebuild
2026-06-29 14:48:02 +02:00

76 lines
2.0 KiB
Bash

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop
DESCRIPTION="Open Source VirtualBox Client with Remote Management"
HOMEPAGE="http://remotebox.knobgoblin.org.uk/"
MY_P="RemoteBox-${PV}"
VBOX_SLOT="7.2"
SRC_URI="http://remotebox.knobgoblin.org.uk/downloads/${MY_P}.tar.bz2"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2"
SLOT="${VBOX_SLOT}"
KEYWORDS="~amd64 ~x86"
DEPEND=">=dev-lang/perl-5.10
x11-libs/gtk+:3
dev-perl/SOAP-Lite
dev-perl/libwww-perl
dev-perl/Gtk3
x11-misc/xdg-utils"
RDEPEND="${DEPEND}
net-misc/freerdp
net-misc/tigervnc"
src_prepare() {
# Call default handler
default
# Change paths
sed -i -e "s|^\(use lib \"\).*\(\";\)$|\1/usr/share/remotebox-${VBOX_SLOT}\2|" remotebox || die
sed -i -e "s|^\(our \$sharedir = \"\).*\(\";\)$|\1/usr/share/remotebox-${VBOX_SLOT}\2|" remotebox || die
#sed -i -e "s|^\(our \$docdir\) \( = \"\).*\(\";\)$|\1\2/usr/share/doc/${P}\3|" remotebox || die
sed -i \
-e "s|^Name=RemoteBox$|Name=RemoteBox (VirtualBox ${VBOX_SLOT})|" \
-e "s|^Exec=remotebox$|Exec=remotebox-${VBOX_SLOT}|" \
-e "s|^Icon=remotebox$|Icon=remotebox-${VBOX_SLOT}|" \
packagers-readme/remotebox.desktop || die
# Cleanup comments
sed -i -e "/^# \^\^\^.*$/d" remotebox || die
sed -i -e "/^# \*\*\*.*$/d" remotebox || die
#exit 1
}
src_install() {
# Install executable
newbin remotebox "remotebox-${VBOX_SLOT}" || die
# Install resources
insinto "/usr/share/remotebox-${VBOX_SLOT}"
doins -r share/remotebox/* || die
# Install documents
# dodoc docs/COPYING docs/changelog.txt docs/remotebox.pdf || die
# Install .desktop file
newmenu packagers-readme/remotebox.desktop "remotebox-${VBOX_SLOT}.desktop" || die
# Install application icon
newicon share/remotebox/icons/remotebox.png "remotebox-${VBOX_SLOT}.png" || die
}
pkg_postinst() {
elog "This version of RemoteBox requires VirtualBox ${VBOX_SLOT}.x running on the server"
elog "Run it as remotebox-${VBOX_SLOT}"
elog "For details, refer to http://remotebox.knobgoblin.org.uk/documentation.cgi"
}