Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:kimi:zoom
zoom-appimage
_service:set_version:PKGBUILD
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:set_version:PKGBUILD of Package zoom-appimage
_TITLE="Zoom AppImage" _executable=zoom _executable_tag=appimage pkgname=${_executable}-${_executable_tag} _pkgname=${_executable}-${_executable_tag} _uploaddir=/usr/src/packages/SOURCES _pkgver=$(head -2 ${_uploaddir}/VERSION | grep Filename | tr -d ' ' | cut -d"-" -f2) _launcher=${_executable}-${_executable_tag} #_architecture=$(uname -m) _architecture=$(lscpu | awk '/Architecture:/{print $2}') _webDir="https://download.opensuse.org/repositories/home:/kimi:/zoom/AppImage/" _APPIMAGE="${_webDir}${_executable}-latest-${_architecture}.AppImage" pkgver=6.0.2.4680 pkgrel=0 pkgdesc="Cloud Meetings" arch=('x86_64') url='https://zoom.us' license=('SUSE-NonFree') groups=("${pkgname}") makedepends=() depends=('wget' 'AppImageUpdate') optdepends=('firejail: sandbox' 'firetools: firejail GUI') #conflicts=('package') # Do not use with set_version service #pkgver() { # echo ${_pkgver} #} package_zoom-appimage() { echo echo "--- Entering section package_zoom-appimage() ---" echo echo _pkgver=${_pkgver} install=${_pkgname}.install sed -i "s|PACKAGEVERSION|${pkgver}|g" "${_uploaddir}/${install}" echo "cat ${_uploaddir}/${install}" echo "------------------------------" cat "${_uploaddir}/${install}" echo "------------------------------" provides=("${pkgname}=${pkgver}") find /usr/src/packages 2>/dev/null echo HOME=$HOME ls -al $HOME 2>/dev/null ls -al ${srcdir} 2>/dev/null srcdir=/usr/src/packages/SOURCES mkdir -p -v "${pkgdir}/opt/appimages" #touch "${pkgdir}/opt/appimages/${_executable}.AppImage" #chmod 755 "${pkgdir}/opt/appimages/${_executable}.AppImage" mkdir -p -v "${pkgdir}/usr/bin" cp -r --no-preserve=mode,ownership "${_uploaddir}/${_executable}.sh" "${pkgdir}/usr/bin/${_launcher}" chmod 755 "${pkgdir}/usr/bin/${_launcher}" install -dm755 "${pkgdir}/usr/share/icons/hicolor/scalable/apps" cat <<EOF > "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg" <svg xmlns="http://www.w3.org/2000/svg" version="1.2" viewBox="0 0 128 128"><path fill="#fefefe" d="m58.347 126.765-4.154-.586A62.653 62.754 0 0 1 3.38 80.07a50.813 50.895 0 0 1-1.855-15.867c0-7.33.318-10.434 1.817-15.994A62.78 62.881 0 0 1 48.4 3.242c5.843-1.463 8.816-1.82 15.676-1.82 5.272 0 6.732.09 9.527.547a62.132 62.232 0 0 1 34.782 17.725 62.156 62.156 0 0 1 17.696 34.863c.495 3.143.635 6.337.546 9.517-.14 5.28-.318 9.836-1.817 15.74a62.78 62.881 0 0 1-44.893 45.093 53.392 53.478 0 0 1-14.863 1.858l-6.708-.039zm14.317-5.471a57.673 57.766 0 0 0 11.687-111.27A57.648 57.74 0 0 0 8.131 78.44a57.838 57.932 0 0 0 64.597 42.84ZM35.316 84.14a11.382 11.4 0 0 1-8.676-8.729c-.496-2.214-.56-29.226-.102-30.231.648-1.4-.101-1.375 21.85-1.336 21.9 0 22.13 0 24.733 1.297a12.106 12.126 0 0 1 4.485 4.263c1.562 2.646 1.6 2.926 1.6 19.073v14.53l-.711.713-.724.687H57.09c-11.395 0-21.177-.127-21.8-.254zm63.34.038c-.23-.063-4.193-2.926-8.817-6.26l-8.422-6.12V56.542l8.486-6.184a156.56 156.56 0 0 1 9.108-6.425 1.016 1.018 0 0 1 1.016.254c.356.37.42 2.125.42 19.913 0 17.406-.064 19.556-.382 19.875-.432.432-.724.496-1.397.203z"/><path fill="#e8ecea" d="M53.965 127.337A63.86 63.963 0 0 1 .839 74.241 56.492 56.583 0 0 1 .001 64.2c.127-5.456.609-10.52 2.134-16.22A64.088 64.192 0 0 1 48.11 2.046 67.328 67.436 0 0 1 64.077.01c3.264-.076 6.936.293 9.756.789a63.987 64.09 0 0 1 53.481 53.529c.457 2.837.686 6.515.686 9.772 0 3.27-.229 6.947-.686 9.785a63.987 64.09 0 0 1-53.15 53.49c-2.503.433-6.175.611-9.274.624-3.646.013-7.241-.09-10.925-.649zm19.97-1.158a62.78 62.881 0 0 0 50.876-46.365 65.537 65.642 0 0 0 1.957-15.74 62.208 62.309 0 0 0-18.382-44.38A61.967 62.067 0 0 0 73.579 1.969a53.443 53.53 0 0 0-9.502-.788c-5.272.127-9.82.56-15.676 2.06A62.78 62.881 0 0 0 3.329 48.196 59.515 59.611 0 0 0 1.22 64.19c.013 5.344.61 9.975 2.147 15.867a62.653 62.754 0 0 0 50.814 46.073c3.582.649 7.24.636 10.861.623 2.973-.013 6.479-.204 8.918-.585z"/><path fill="#558dfe" d="M59.326 121.777a57.737 57.83 0 1 1 13.338-.522c-3.646.548-10.086.815-13.338.484zm19.207-38.12.686-.726V68.426c0-16.083 0-16.414-1.626-19.022a12.106 12.126 0 0 0-4.459-4.263c-2.604-1.297-2.833-1.336-24.72-1.336-21.927 0-21.215-.063-21.825 1.298-.457 1.044-.432 28.056.064 30.308a11.382 11.4 0 0 0 8.676 8.704c.597.089 10.417.19 21.799.229h20.63zm21.532.318c.33-.319.394-2.469.394-19.875 0-17.788-.038-19.544-.42-19.938a.978.98 0 0 0-.977-.255c-.33.09-4.421 2.965-9.109 6.388l-8.524 6.247V71.76l8.46 6.133a298.63 299.112 0 0 0 8.779 6.285c.686.255.978.23 1.397-.203z" style="fill:#b200f8;fill-opacity:1"/></svg> EOF install -Dm644 "${srcdir}/launcher.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" mkdir -p -v ${pkgdir}/usr/local/bin # Create a script to download Zoom AppImage # Create script in /usr/local/bin/${_pkgname}-download cat <<EOF > ${pkgdir}/usr/local/bin/${_pkgname}-download #!/bin/bash echo "Closing ${_executable}.AppImage ..." pkill AppRun.wrapped killall ${_launcher} echo "wait a few seconds to terminate ${_executable}.AppImage ..." sleep 5s echo "Download ${_TITLE} file to /opt/appimages/" sudo mkdir -p /opt/appimages/ sudo wget -O /opt/appimages/${_executable}.AppImage "${_APPIMAGE}" echo echo "Done." exit 0 EOF # Make script executable chmod +x ${pkgdir}/usr/local/bin/${_pkgname}-download # Create a script to update Zoom AppImage # Create script in /usr/local/bin/zoom-appimage-update scriptFile="${pkgdir}/usr/local/bin/${_executable}-${_executable_tag}-update" cat <<EOF > "${scriptFile}" #!/bin/bash echo "Closing ${_executable}.AppImage ..." pkill AppRun.wrapped killall ${_launcher} echo "wait a few seconds to terminate ${_executable}.AppImage ..." sleep 5s echo "Download ${_TITLE} file to /opt/appimages/" file=/opt/appimages/${_executable}.AppImage minimumsize=90 if [ -f \$file ]; then echo "found \$file" actualsize=\$(du -k \$file | cut -f 1) if [ \$actualsize -ge \$minimumsize ]; then #echo "size is over \$minimumsize kilobytes" echo "appimageupdatetool \$file" sleep 1 sudo appimageupdatetool \$file iFiles=\`ls /opt/appimages | grep '${_executable}.*\.AppImage' | wc -l\` if [ \$iFiles -gt 1 ]; then sudo rm -f \$file sudo mv /opt/appimages/${_executable}*.AppImage $file fi else #echo "size is under \$minimumsize kilobytes" echo "Downloading ${_executable}.AppImage..." sleep 1 sudo wget -O \$file ${_APPIMAGE} fi else echo "Downloading ${_executable}.AppImage..." sleep 1 sudo mkdir -p /opt/appimages/ sudo wget -O \$file ${_APPIMAGE} fi sudo chmod 755 \$file echo "Done." exit 0 EOF # Make script executable chmod +x "${scriptFile}" echo "--- Start list files that will be packaged ---" find ${pkgdir} | sed "s|${pkgdir}||g" echo "--- End list files that will be packaged ---" echo echo echo "--- Exiting section package_zoom-appimage() ---" echo }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor