#!/usr/bin/env sh # From https://hashman.ca/zoom/. Patches a zoom .deb to remove the ibus dependency scratch=/tmp/patch-zoom rm -rf $scratch mkdir $scratch # Extract package contents cp ${1} $scratch/zoom_amd64.deb dpkg -x $scratch/zoom_amd64.deb $scratch/extracted # Extract package control information dpkg -e $scratch/zoom_amd64.deb $scratch/extracted/DEBIAN # Remove the ibus dependency echo "Removing ibus" sed -i -E 's/(ibus, |, ibus)//' $scratch/extracted/DEBIAN/control # Rebuild the .deb dpkg -b $scratch/extracted $scratch/patched_zoom_amd64.deb echo "Package built, installing now" sudo dpkg -i $scratch/patched_zoom_amd64.deb sudo apt install -f