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

50 lines
1.4 KiB
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 '_')
2022-12-02 15:03:20 -08:00
DESCRIPTION="NoMachine all-in-one package"
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"
2022-11-29 13:48:18 -08:00
S="${WORKDIR}/NX/etc/NX/server/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=""
2022-12-02 15:03:20 -08:00
RDEPEND="dev-libs/glib:2
2022-11-29 13:05:17 -08:00
sys-libs/libudev-compat
virtual/libcrypt:0
dev-libs/openssl:0"
2022-03-29 13:17:11 -07:00
QA_PREBUILT="*"
2022-12-02 15:03:20 -08:00
src_install() {
local NXROOT=/opt/NX
###doicon "${FILESDIR}/${PN}.png"
make_desktop_entry "nxserver" "NoMachine Server" "" "Network"
make_desktop_entry "nxnode" "NoMachine nxnode" "" "Network"
make_desktop_entry "nxrunner" "NoMachine nxrunner" "" "Network"
make_desktop_entry "nxplayer" "NoMachine Client" "" "Network"
dodir /opt
tar xzof nxserver.tar.gz -C "${D}"/opt
tar xzof nxnode.tar.gz -C "${D}"/opt
tar xzof nxrunner.tar.gz -C "${D}"/opt
tar xzof nxplayer.tar.gz -C "${D}"/opt
make_wrapper nxserver ${NXROOT}/bin/nxserver ${NXROOT} ${NXROOT}/lib /opt/bin
make_wrapper nxnode ${NXROOT}/bin/nxnode ${NXROOT} ${NXROOT}/lib /opt/bin
make_wrapper nxrunner ${NXROOT}/bin/nxrunner ${NXROOT} ${NXROOT}/lib /opt/bin
make_wrapper nxplayer ${NXROOT}/bin/nxplayer ${NXROOT} ${NXROOT}/lib /opt/bin
}