2 # From https://hashman.ca/zoom/. Patches a zoom .deb to remove the ibus dependency
4 scratch=/tmp/patch-zoom
8 # Extract package contents
9 cp ${1} $scratch/zoom_amd64.deb
10 dpkg -x $scratch/zoom_amd64.deb $scratch/extracted
12 # Extract package control information
13 dpkg -e $scratch/zoom_amd64.deb $scratch/extracted/DEBIAN
15 # Remove the ibus dependency
17 sed -i -E 's/(ibus, |, ibus)//' $scratch/extracted/DEBIAN/control
20 dpkg -b $scratch/extracted $scratch/patched_zoom_amd64.deb
22 echo "Package built, installing now"
23 sudo dpkg -i $scratch/patched_zoom_amd64.deb