Skip to content

Instantly share code, notes, and snippets.

@taoky
Created May 22, 2024 15:08
Show Gist options
  • Save taoky/a148577dd041d81a41704d7023619923 to your computer and use it in GitHub Desktop.
Save taoky/a148577dd041d81a41704d7023619923 to your computer and use it in GitHub Desktop.
autocorrect-bin AUR update
#!/bin/bash -e
version=2.10.0
rm -f autocorrect-linux-amd64.tar.gz.sha256
wget https://github.com/huacnlee/autocorrect/releases/download/v$version/autocorrect-linux-amd64.tar.gz.sha256
rm -f autocorrect-linux-arm64.tar.gz.sha256
wget https://github.com/huacnlee/autocorrect/releases/download/v$version/autocorrect-linux-arm64.tar.gz.sha256
sed -i "s/^pkgver=.*/pkgver=$version/" PKGBUILD
sed -i "s/^sha256sums_x86_64=.*/sha256sums_x86_64=('$(cat autocorrect-linux-amd64.tar.gz.sha256)')/" PKGBUILD
sed -i "s/^sha256sums_aarch64=.*/sha256sums_aarch64=('$(cat autocorrect-linux-arm64.tar.gz.sha256)')/" PKGBUILD
makepkg --printsrcinfo > .SRCINFO
# install locally
rm -f autocorrect-bin-x86_64 *.zst
makepkg -si
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment