2 # From https://hashman.ca/zoom/. Patches a zoom .deb to remove the ibus dependency
3 scratch=/tmp/patch-zoom
7 # Extract package contents
8 cp $1 $scratch/zoom_amd64.deb
9 dpkg -x $scratch/zoom_amd64.deb $scratch/extracted
11 # Extract package control information
12 dpkg -e $scratch/zoom_amd64.deb $scratch/extracted/DEBIAN
14 # Remove the ibus dependency
16 sed -i -E 's/(ibus, |, ibus)//' $scratch/extracted/DEBIAN/control
19 dpkg -b $scratch/extracted $scratch/patched_zoom_amd64.deb
21 echo "Package built, installing now"
22 sudo dpkg -i $scratch/patched_zoom_amd64.deb