void-packages/srcpkgs/vmware-horizon-client/template

57 lines
1.7 KiB
Bash

# Template file for 'vmware-horizon-client'
pkgname=vmware-horizon-client
version=2312
revision=1
_build1=8.12.0
_build2=23149323
_cart="CART24FQ4_LIN_${version}"
archs="x86_64"
short_desc="VMware Horizon virtual desktop client"
maintainer="Andrew Benson <abenson@gmail.com>"
license="custom:Proprietary"
homepage="https://www.vmware.com/go/viewclients"
distfiles="https://download3.vmware.com/software/${_cart}_TARBALL/VMware-Horizon-Client-Linux-${version}-${_build1}-${_build2}.tar.gz"
checksum=15ca1d6028b9ca88e23fa363a2942fd76456c19e95ced4734595c3dc44db38d8
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.59' 'libavutil.so.57'; do
find "${DESTDIR}/usr/lib/vmware/view/" -name "${LIB}" -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
}
}