108 lines
2.6 KiB
Bash
108 lines
2.6 KiB
Bash
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
inherit pax-utils xdg-utils versionator desktop
|
|
|
|
PV_MAJ=$(get_major_version )
|
|
PV_MIN=$(get_version_component_range 2)
|
|
PV_SUB=$(get_version_component_range 3)
|
|
PV_DIF=$(get_version_component_range 4)
|
|
MY_PV="${PV_MAJ}.${PV_MIN}.${PV_DIF}"
|
|
|
|
DESCRIPTION="Parallels Remote Application Client"
|
|
HOMEPAGE="https://www.parallels.com/eu/products/ras/download/links/#lin"
|
|
SRC_URI="amd64? ( http://download.parallels.com/ras/v${PV_MAJ}/${PV}/RASClient-${MY_PV}_x86_64.tar.bz2
|
|
http://download.parallels.com/ras/v${PV_MAJ}/${PV}/RASClient-sso-${MY_PV}_x86_64.tar.bz2 )"
|
|
|
|
LICENSE="no-source-code"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="pax_kernel"
|
|
|
|
S="${WORKDIR}"
|
|
RESTRICT="mirror bindist strip" #299368
|
|
|
|
|
|
DEPEND="dev-libs/libxml2
|
|
dev-qt/qtcore:5
|
|
dev-qt/qtdbus:5
|
|
dev-qt/qtgui:5
|
|
dev-qt/qtnetwork:5
|
|
dev-qt/qtprintsupport:5
|
|
dev-qt/qtwidgets:5
|
|
dev-qt/qtx11extras:5
|
|
dev-qt/qtxml:5
|
|
media-libs/alsa-lib
|
|
net-print/cups
|
|
|| ( sys-devel/base-gcc sys-devel/gcc )
|
|
sys-libs/zlib
|
|
x11-libs/libX11
|
|
x11-libs/libXext
|
|
x11-libs/libXinerama
|
|
x11-libs/libXrandr
|
|
x11-libs/libXtst
|
|
dev-libs/libusb
|
|
sys-apps/pcsc-lite
|
|
sys-libs/glibc
|
|
x11-libs/libXpm
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
#pkg_setup() {
|
|
# This is a binary x86 package => ABI=x86
|
|
# Please keep this in future versions
|
|
#has_multilib_profile && ABI="x86"
|
|
#}
|
|
|
|
src_install() {
|
|
into /opt/2X/Client/
|
|
dobin opt/2X/Client/bin/*
|
|
dolib.so opt/2X/Client/lib/*
|
|
ln -sf $(get_libdir) "${D}/opt/2X/Client/lib"
|
|
|
|
dodoc opt/2X/Client/doc/*
|
|
|
|
doicon opt/2X/Client/share/2X.png
|
|
|
|
domenu opt/2X/Client/share/rasclient.desktop
|
|
domenu opt/2X/Client/share/tuxclient.desktop
|
|
domenu opt/2X/Client/share/rassession.desktop
|
|
|
|
insinto /usr/share/mime-info
|
|
doins opt/2X/Client/share/mime/*.{keys,mime}
|
|
|
|
insinto /usr/share/application-registry
|
|
doins opt/2X/Client/share/mime/2XSession.applications
|
|
|
|
insinto /usr/share/mime/packages/
|
|
doins opt/2X/Client/share/sharedmimeinfo/2XClient.xml
|
|
|
|
insinto /opt/2X/Client/share
|
|
doins opt/2X/Client/share/*.{conf,qm,qss,pem}
|
|
doins opt/2X/Client/share/installed
|
|
|
|
|
|
# if use pax_kernel; then
|
|
# pax-mark -Cm "${ED%/}"/opt/skypeforlinux/skypeforlinux
|
|
# eqawarn "You have set USE=pax_kernel meaning that you intend to run"
|
|
# eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
|
|
# eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
|
|
# eqawarn "you suspect that ${PN} is being broken by this modification,"
|
|
# eqawarn "please open a bug."
|
|
# fi
|
|
}
|
|
|
|
pkg_postinst() {
|
|
xdg_desktop_database_update
|
|
xdg_mimeinfo_database_update
|
|
}
|
|
|
|
pkg_postrm() {
|
|
xdg_desktop_database_update
|
|
xdg_mimeinfo_database_update
|
|
}
|