void-packages/srcpkgs/zoom/template
2021-04-22 19:01:42 -03:00

52 lines
1.5 KiB
Bash

# Template file for 'zoom'
pkgname=zoom
version=5.6.16775.0418
revision=1
archs="x86_64"
wrksrc=zoom
create_wrksrc=yes
hostmakedepends="rpmextract"
depends="$(vopt_if systemqt 'qt5 qt5-graphicaleffects qt5-imageformats qt5-quickcontrols qt5-quickcontrols2 qt5-svg qt5-script qt5-declarative')
xcb-util-image xcb-util-keysyms"
short_desc="Video Conferencing and Web Conferencing Service"
maintainer="Daniel Santana <daniel@santana.tech>"
license="custom:Proprietary"
homepage="https://zoom.us/"
distfiles="https://cdn.zoom.us/prod/${version}/zoom_x86_64.rpm"
checksum=b055c5a4255a4675a3603e7d50bb4b918efd90ba68010e27462c977e2d34973f
repository=nonfree
noshlibprovides=yes
noverifyrdeps=yes
restricted=yes
nopie=yes
build_options="systemqt"
desc_option_systemqt="Use system QT libraries"
pre_install() {
if [ "${build_option_systemqt}" ]; then
rm -f opt/zoom/libQt5*.so{,.*}
rm -f opt/zoom/libicu*.so{,.*}
rm -rf opt/zoom/*integrations
rm -rf opt/zoom/audio
rm -rf opt/zoom/generic
rm -rf opt/zoom/iconengines
rm -rf opt/zoom/imageformats
rm -rf opt/zoom/platforms
rm -rf opt/zoom/platforminputcontexts
rm -rf opt/zoom/platformthemes
rm -rf opt/zoom/Qt{,GraphicalEffects,Qml,Quick,Quick.2,Wayland}
rm -rf opt/zoom/wayland-*
rm -f opt/zoom/libmpg123.so
rm -f opt/zoom/libfaac1.so
rm -f opt/zoom/libturbojpeg.so{,.*}
rm -f opt/zoom/libquazip.so{,.*}
rm opt/zoom/qt.conf
fi
}
do_install() {
vcopy "*" /
vlicense ${FILESDIR}/DISTRIBUTION-DETAILS
}