57 lines
1.8 KiB
Bash
57 lines
1.8 KiB
Bash
# Template file for 'vmware-horizon-client'
|
|
pkgname=vmware-horizon-client
|
|
version=2406
|
|
revision=1
|
|
_build1=8.13.0
|
|
_build2=9995429239
|
|
_cart="CART25FQ2_LIN_${version}"
|
|
archs="x86_64"
|
|
short_desc="VMware Horizon virtual desktop client"
|
|
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
|
license="custom:Proprietary"
|
|
homepage="https://www.vmware.com/go/viewclients"
|
|
distfiles="https://download3.omnissa.com/software/${_cart}_TARBALL/VMware-Horizon-Client-Linux-${version}-${_build1}-${_build2}.tar.gz"
|
|
checksum=d6bae5cea83c418bf3a9cb884a7d8351d8499f1858a1ac282fd79dc0c64e83f6
|
|
repository=nonfree
|
|
restricted=yes
|
|
nopie=yes
|
|
|
|
do_install() {
|
|
# Extract main components and copy into place
|
|
vmkdir usr
|
|
for _bundle in Client html5mmr PCoIP USB integratedPrinting scannerClient serialportClient; do
|
|
bsdtar xf "x64/VMware-Horizon-${_bundle}-${version}-${_build1}-${_build2}.x64.tar.gz"
|
|
vcopy "VMware-Horizon-${_bundle}-${version}-${_build1}-${_build2}.x64/*" /
|
|
done
|
|
|
|
# Replace shipped libav with ours
|
|
for LIB in 'libavcodec.so.60' 'libavutil.so.58'; do
|
|
find "${DESTDIR}/usr/lib/vmware/view/" -name "${LIB}.omnissa" -exec ln -sf "/usr/lib/${LIB}" {} \;
|
|
done
|
|
|
|
# Allow for use of pkcs11 smartcards
|
|
vmkdir usr/lib/vmware/view/pkcs11
|
|
ln -sf /usr/lib/pkcs11/opensc-pkcs11.so ${DESTDIR}/usr/lib/vmware/view/pkcs11/libopenscpkcs11.so
|
|
|
|
vsv ftscanhvd
|
|
vsv ftsprhvd
|
|
vsv vmware-USBArbitrator
|
|
|
|
vlicense ${DESTDIR}/usr/share/doc/vmware-horizon-client/open_source_licenses.txt
|
|
|
|
vmkdir usr/lib/udev
|
|
mv ${DESTDIR}/etc/udev/rules.d ${DESTDIR}/usr/lib/udev/
|
|
|
|
rm -rf ${DESTDIR}/README \
|
|
${DESTDIR}/etc/init.d \
|
|
${DESTDIR}/systemd
|
|
}
|
|
|
|
vmware-horizon-client-smartcard_package() {
|
|
short_desc+=" - pkcs11 support"
|
|
depends="opensc-pkcs11"
|
|
pkg_install() {
|
|
vmove usr/lib/vmware/view/pkcs11
|
|
}
|
|
}
|