No description
Find a file
2025-07-08 15:42:15 -04:00
install.sh added install script 2025-07-08 15:42:15 -04:00
LICENSE init commit 2025-07-08 15:19:30 -04:00
README.md added install script 2025-07-08 15:42:15 -04:00
update-integrity init commit 2025-07-08 15:19:30 -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.

The following installation script is provided as a convenience. You can copy this code into a POSIX shell to install update-integrity.

#!/bin/sh

script="https://git.sr.ht/~ficd/pkgbuild-update-integrity/blob/main/update-integrity"
curl "$script">update-integrity
chmod +x update-update-integrity
sudo cp -f update-integrity /usr/bin/update-integrity