linamh/net-misc/rasclient/rasclient-15.5.4.16465.ebuild
Mario Fetka f3987e65cf Bump
2020-01-23 11:57:54 +01:00

86 lines
2.3 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 multilib
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="x86? ( http://download.parallels.com/ras/v${PV_MAJ}/${PV}/RASClient-${MY_PV}_i386.tar.bz2 )"
SRC_URI="amd64? ( http://download.parallels.com/ras/v${PV_MAJ}/${PV}/RASClient-${MY_PV}_i386.tar.bz2 )"
LICENSE="no-source-code"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="pax_kernel multilib"
S="${WORKDIR}"
RESTRICT="mirror bindist strip" #299368
RDEPEND="
media-libs/libpng:1.2
dev-qt/qtdbus:4
dev-qt/qtcore:4"
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
}