No description
Find a file
2025-07-16 16:57:09 -04:00
install.sh updated installer, readme, repo url 2025-07-16 16:57:09 -04:00
LICENSE init commit 2025-07-08 15:19:30 -04:00
README.md updated installer, readme, repo url 2025-07-16 16:57:09 -04:00
update-integrity.sh updated installer, readme, repo url 2025-07-16 16:57:09 -04:00

PKGBUILD Update Integrity

This repository contains a simple helper script, update-integrity. Its purpose is to easily update the sha256 sums in PKGBUILD files. This is helpful if you're maintaining a PKGBUILD and have bumped a version or updated some sources. It simply replaces the existing hashes with the output of makepkg -g, first prompting the user for a review and confirmation. It requires kakoune since we use kak -f to perform the replacement.

To use the script, simply provide a path to a PKGBUILD or its parent directory as the argument. If no argument is given, the current working directory is used.

An installation script is provided as a convenience.

Important

You should never pipe an unknown script directly into your shell. Always review it first.

url="https://git.ficd.sh/ficd/pkgbuild-update-integrity/raw/branch/main/install.sh"
# download installer
curl "$url" -o /tmp/install.sh
# review it
less /tmp/install.sh
# make it executable, run it
chmod +x /tmp/install.sh
/tmp/install.sh