diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-09-14 12:02:31 +0800 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-09-14 12:02:31 +0800 |
commit | f4224b2b4d00501b8a0636286e96f58cc71a221e (patch) | |
tree | b22778dc9e94069d5ff6b713c4a1d4ab7c5a2108 /sh/upd | |
parent | 6f982c43ced07e62bfa66df384f007f43f5eb827 (diff) |
upd remove zoom and zoom-firejail related codes
Because aur/zoom-firejail is deleted by others and I no longer need zoom.
Diffstat (limited to 'sh/upd')
-rwxr-xr-x | sh/upd | 42 |
1 files changed, 1 insertions, 41 deletions
@@ -247,7 +247,7 @@ pac () { /^\([0-9]+\/[0-9]+\) Checking which packages need to be rebuilt$/ {f=1; next} /^(\(|:)|==>/ {f=0} f { - if($2!~"zoom|miniconda3") + if($2!~"miniconda3") if(!a[$2]++) printf("%s ",$2) }')" @@ -269,45 +269,6 @@ pac () { systemctl list-unit-files --state=enabled > "$XDG_CONFIG_HOME/myconf/sye" systemctl --user list-unit-files --state=enabled > "$XDG_CONFIG_HOME/myconf/syue" - if echo "$aurpacs" | grep -q 'zoom-[0-9]'; then - new_schemes="$(grep -m1 '^X-KDE-Protocols=' /usr/share/applications/Zoom.desktop)" - old_schemes="$(grep -m1 '^X-KDE-Protocols=' "$HOME/programs/repos/aur/zoom-firejail/ZoomFirejail.desktop")" - - if [ "$new_schemes" != "$old_schemes" ]; then - zoom_firejail_log="zoom-firejail updated MIME type, test then aurpublish" - # aur/zoom-firejail author snowball did not include - # application/x-zoom in MimeType, not sure why, I decided to follow - # what he did anyway - new_mime="$(awk -F';' ' - /^MimeType=/ { - for(i=1;i<=NF;i++) - if($i != "application/x-zoom" && $i != "") - printf("%s;",$i) - exit - }' /usr/share/applications/Zoom.desktop)" - schemes="$(echo "$new_schemes" | awk -F'[=;]' ' - { - for(i=2;i<=NF;i++) - if($i != "") - printf(" %s",$i) - } - ')" - old_pkgrel="$(awk -F= '/^pkgrel=/{printf("%d",$2);exit}' "$HOME/programs/repos/aur/zoom-firejail/PKGBUILD")" - - sed -i -e "s/^X-KDE-Protocols=.*/$new_schemes/" \ - -e "s#^MimeType=.*#$new_mime#" \ - "$HOME/programs/repos/aur/zoom-firejail/ZoomFirejail.desktop" - # must checksum after write new desktop entry because PKGBUILD need new checksum - desktop_sum="$(sha512sum "$HOME/programs/repos/aur/zoom-firejail/ZoomFirejail.desktop" | awk '{printf("%s",$1)}')" - sed -i -e "s/^\( for scheme in\).*\(; do\)$/\1${schemes}\2/" \ - -e "s/^\( if \[ \$(vercmp \$2 [0-9]\+\.[0-9]\+\.[0-9]\+-\)[0-9]\+\() -le 0 \]; then\)$/\1${old_pkgrel}\2/" \ - "$HOME/programs/repos/aur/zoom-firejail/zoom-firejail.install" - sed -i -e "s/^pkgrel=.*/pkgrel=$((old_pkgrel+1))/" \ - -e "s/^sha512sums=.*/sha512sums=('$desktop_sum'/" \ - "$HOME/programs/repos/aur/zoom-firejail/PKGBUILD" - fi - fi - # pacdiff default use pacman database, so no need `sudo -E` for find, but will be a little bit slower # [^-] consider util-linux; \(^\|[^-]\) consider linux is the first package, ex: pacout is only 'linux-6.6.6' log="$log @@ -316,7 +277,6 @@ updated aur packages: $aurpacs pacdiff: $(pacdiff -o | tr '\n' ' ') checkrebuild: $checkrebuild_pacs $(if echo "$pacpacs" | grep -q '\(^\|[^-]\)linux-\(megi-\)\?[0-9]'; then echo 'kernel upgraded, need reboot'; fi) -$zoom_firejail_log " } |