diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-22 20:28:19 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-22 20:28:19 +0000 |
commit | abaa75b10f899ada8dd05b23cc03205064394bc6 (patch) | |
tree | eca3dd248b73b92013cba00a0fcc1edf2696e19a /media-plugins/hdx-realtime-media-engine/hdx-realtime-media-engine-2.9.200.2506-r1.ebuild | |
parent | 24fd814c326e282c4321965c31f341dad77e270d (diff) |
gentoo resync : 22.01.2021
Diffstat (limited to 'media-plugins/hdx-realtime-media-engine/hdx-realtime-media-engine-2.9.200.2506-r1.ebuild')
-rw-r--r-- | media-plugins/hdx-realtime-media-engine/hdx-realtime-media-engine-2.9.200.2506-r1.ebuild | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/media-plugins/hdx-realtime-media-engine/hdx-realtime-media-engine-2.9.200.2506-r1.ebuild b/media-plugins/hdx-realtime-media-engine/hdx-realtime-media-engine-2.9.200.2506-r1.ebuild new file mode 100644 index 000000000000..54b8d7300593 --- /dev/null +++ b/media-plugins/hdx-realtime-media-engine/hdx-realtime-media-engine-2.9.200.2506-r1.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit unpacker + +MY_PV="$(ver_cut 1-3)" + +DESCRIPTION="HDX RealTime Media Engine plugin for Citrix Workspace App" +HOMEPAGE="https://www.citrix.com/" +SRC_URI="amd64? ( HDX_RealTime_Media_Engine_${MY_PV}_for_Linux_x64.zip ) + x86? ( HDX_RealTime_Media_Engine_${MY_PV}_for_Linux.zip )" +LICENSE="icaclient" +SLOT="0" + +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="fetch mirror strip" + +DEPEND="app-arch/unzip" +RDEPEND=" + >=net-misc/icaclient-20.12.0.12-r1 + || ( + media-sound/pulseaudio + media-sound/apulse + ) +" + +ICAROOT="/opt/Citrix/ICAClient" +QA_PREBUILT="${ICAROOT#/}/*" + +S="${WORKDIR}/usr/local/bin" + +pkg_nofetch() { + elog "Download the client file ${A} from" + elog "https://www.citrix.com/de-de/downloads/citrix-receiver/additional-client-software/hdx-realtime-media-engine-ltsrcu-latest.html" + elog "and place it into your DISTDIR directory." +} + +pkg_setup() { + case ${ARCH} in + amd64) + zip_dir="x86_64" + zip_arch="amd64" + ;; + x86) + zip_dir="i386" + zip_arch="i386" + ;; + esac +} + +src_unpack() { + default + + local MY_T="${WORKDIR}/HDX_RealTime_Media_Engine_${MY_PV}_for_Linux$(usex amd64 '_x64' '')" + local deb_base_name="citrix-hdx-realtime-media-engine" + unpack_deb ${MY_T}/${zip_dir}/${deb_base_name}_$(ver_rs 3 -)_${zip_arch}.deb +} + +src_install() { + insinto "${ICAROOT}/rtme" + + # No, we do NOT install such a generic udev rule into the system + local destfiles=( + DialTone_US.wav + EULA.rtf + InboundCallRing.wav + ) + + local el + for el in "${destfiles[@]}" ; do + doins "${el}" + done + + exeinto "${ICAROOT}"/rtme + doexe RTMEconfig RTMediaEngineSRV + + for el in /var/{lib,log}/RTMediaEngineSRV /var/lib/Citrix/HDXRMEP ; do + keepdir ${el} + fperms a+rw ${el} + done + + insinto "${ICAROOT}" + doins HDXRTME.so +} + +pkg_postinst() { + ebegin "add info about our plugin to the module.ini of the Citrix receiver" + local inifile="${BROOT}${ICAROOT}/config/module.ini" + if cp "${inifile}" . ; then + "${BROOT}${ICAROOT}"/rtme/RTMEconfig -install -ignoremm \ + && cp new_module.ini "${inifile}" + fi + eend $? +} |