source: net-misc/rasclient/rasclient-15.5.4.16465.ebuild @ f3987e6

Revision f3987e6, 2.3 KB checked in by Mario Fetka <mario.fetka@…>, 10 months ago (diff)

Bump

  • Property mode set to 100644
Line 
1# Copyright 1999-2017 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3
4EAPI=6
5
6inherit pax-utils xdg-utils versionator desktop multilib
7
8PV_MAJ=$(get_major_version )
9PV_MIN=$(get_version_component_range 2)
10PV_SUB=$(get_version_component_range 3)
11PV_DIF=$(get_version_component_range 4)
12MY_PV="${PV_MAJ}.${PV_MIN}.${PV_DIF}"
13
14DESCRIPTION="Parallels Remote Application Client"
15HOMEPAGE="https://www.parallels.com/eu/products/ras/download/links/#lin"
16SRC_URI="x86? ( http://download.parallels.com/ras/v${PV_MAJ}/${PV}/RASClient-${MY_PV}_i386.tar.bz2 )"
17SRC_URI="amd64? ( http://download.parallels.com/ras/v${PV_MAJ}/${PV}/RASClient-${MY_PV}_i386.tar.bz2 )"
18
19LICENSE="no-source-code"
20SLOT="0"
21KEYWORDS="~amd64 ~x86"
22IUSE="pax_kernel multilib"
23
24S="${WORKDIR}"
25RESTRICT="mirror bindist strip" #299368
26
27
28RDEPEND="
29        media-libs/libpng:1.2
30        dev-qt/qtdbus:4
31        dev-qt/qtcore:4"
32
33pkg_setup() {
34        # This is a binary x86 package => ABI=x86
35        # Please keep this in future versions
36        has_multilib_profile && ABI="x86"
37}
38
39src_install() {
40        into /opt/2X/Client/
41        dobin opt/2X/Client/bin/*
42        dolib.so opt/2X/Client/lib/*
43        ln -sf $(get_libdir) "${D}/opt/2X/Client/lib"
44
45        dodoc opt/2X/Client/doc/*
46
47        doicon opt/2X/Client/share/2X.png
48
49        domenu opt/2X/Client/share/rasclient.desktop
50        domenu opt/2X/Client/share/tuxclient.desktop
51        domenu opt/2X/Client/share/rassession.desktop
52
53        insinto /usr/share/mime-info
54        doins opt/2X/Client/share/mime/*.{keys,mime}
55
56        insinto /usr/share/application-registry
57        doins opt/2X/Client/share/mime/2XSession.applications
58
59        insinto /usr/share/mime/packages/
60        doins opt/2X/Client/share/sharedmimeinfo/2XClient.xml
61
62        insinto /opt/2X/Client/share
63        doins opt/2X/Client/share/*.{conf,qm,qss,pem}
64        doins opt/2X/Client/share/installed
65
66
67#       if use pax_kernel; then
68#               pax-mark -Cm "${ED%/}"/opt/skypeforlinux/skypeforlinux
69#               eqawarn "You have set USE=pax_kernel meaning that you intend to run"
70#               eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
71#               eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
72#               eqawarn "you suspect that ${PN} is being broken by this modification,"
73#               eqawarn "please open a bug."
74#       fi
75}
76
77pkg_postinst() {
78        xdg_desktop_database_update
79        xdg_mimeinfo_database_update
80}
81
82pkg_postrm() {
83        xdg_desktop_database_update
84        xdg_mimeinfo_database_update
85}
Note: See TracBrowser for help on using the repository browser.