Documentation
¶
Overview ¶
Package gensum downloads PKGBUILD sources and rewrites the checksum arrays in-place, matching the behaviour of makepkg's updpkgsums utility.
For each source=() / source_<arch>=() block in the PKGBUILD:
- git+… entries keep their existing value (SKIP or a commit hash).
- All other entries (http/https/ftp/file) are downloaded to a temporary directory and hashed with SHA-256.
The rewrite preserves the original formatting exactly: single-line vs multi-line, quote characters (' or "), indentation, and spacing. Only the hash values themselves are replaced; everything else is untouched.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateChecksums ¶
UpdateChecksums reads the PKGBUILD at pkgbuildDir, downloads every non-VCS source, computes its SHA-256 digest, and rewrites the checksum array(s) in the file preserving the original formatting.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.