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

59 lines
1.8 KiB
Bash

# Template file for 'vmware-horizon-client'
pkgname=vmware-horizon-client
version=2303
revision=1
_build1=8.9.0
_build2=21435420
_cart="CART24FQ1_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=a4dcc6afc0be7641e10e922ccbbab0a10adbf8f2a83e4b5372dfba095091fb78
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/*" usr/
done
vmkdir etc
mv ${DESTDIR}/usr/vmware ${DESTDIR}/etc
# 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/doc/open_source_licenses.txt
rm -rf ${DESTDIR}/usr/README \
${DESTDIR}/usr/doc \
${DESTDIR}/usr/patches \
${DESTDIR}/usr/init.d \
${DESTDIR}/usr/systemd
}
vmware-horizon-client-smartcard_package() {
short_desc+=" - pkcs11 support"
depends="opensc-pkcs11"
pkg_install() {
vmove usr/lib/vmware/view/pkcs11
}
}