gensum

package
v2.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

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

func UpdateChecksums(pkgbuildDir string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL