canutethegreat-overlay/net-misc/nomachine/nomachine-8.2.3.4.ebuild

42 lines
898 B
Bash
Raw Normal View History

2022-11-29 13:05:17 -08:00
# Copyright 1999-2022 Gentoo Authors
2022-03-29 13:17:11 -07:00
# Distributed under the terms of the GNU General Public License v2
2022-11-29 13:05:17 -08:00
EAPI=7
2022-03-29 13:17:11 -07:00
2022-11-29 13:05:17 -08:00
inherit wrapper desktop
2022-03-29 13:17:11 -07:00
2022-11-29 13:05:17 -08:00
MY_V=$(ver_cut 1-2)
MY_PV=$(ver_rs 3 '_')
DESCRIPTION="NoMachine Client"
2022-03-29 13:17:11 -07:00
HOMEPAGE="https://www.nomachine.com"
2022-11-29 13:05:17 -08:00
SRC_URI="https://download.nomachine.com/download/${MY_V}/Linux/${PN}_${MY_PV}_x86_64.tar.gz"
S="${WORKDIR}/NX/etc/NX/player/packages"
2022-03-29 13:17:11 -07:00
LICENSE="nomachine"
SLOT="0"
2022-11-29 13:05:17 -08:00
KEYWORDS="~amd64"
IUSE=""
RESTRICT="strip"
2022-03-29 13:17:11 -07:00
2022-11-29 13:05:17 -08:00
DEPEND=""
BDEPEND=""
RDEPEND="dev-libs/glib:2
sys-libs/libudev-compat
virtual/libcrypt:0
dev-libs/openssl:0"
2022-03-29 13:17:11 -07:00
QA_PREBUILT="*"
src_install() {
2022-11-29 13:05:17 -08:00
local NXROOT=/opt/NX
doicon "${FILESDIR}/${PN}.png"
make_desktop_entry "nxplayer" "NoMachine Client" "" "Network"
2022-03-29 13:17:11 -07:00
dodir /opt
2022-11-29 13:05:17 -08:00
tar xzof nxclient.tar.gz -C "${D}"/opt
tar xzof nxplayer.tar.gz -C "${D}"/opt
2022-03-29 13:17:11 -07:00
2022-11-29 13:05:17 -08:00
make_wrapper nxplayer ${NXROOT}/bin/nxplayer ${NXROOT} ${NXROOT}/lib /opt/bin
2022-03-29 13:17:11 -07:00
}