Package Update Workflow
When updating a package to a new upstream version:
Run the sync script:
bash scripts/sync-package.sh <pkgname> <version>This performs the hybrid merge with upstream, applies
update.sh, and updates hashes.Lint the result:
namcap PKGBUILDFix any issues before proceeding.
Regenerate metadata:
makepkg --printsrcinfo > .SRCINFOBuild in a clean chroot:
pkgctl buildThis verifies the package compiles and passes
check()in an isolated environment.Sanity check the payload:
pkgctl diff --listVerify the primary binary, license file, and directory structure are intact. A payload size deviation of >10% or disappearance of
/usr/bin/targets must be investigated.Acknowledge the update:
nvtake <pkgname>Refer to the Debian nvtake manual for flags. Do not hallucinate options.
Commit
PKGBUILDand.SRCINFOtogether in a single commit. Use the format<pkgname>: update to <version>.
Gotchas
pkgctl buildmay require a pre-configured chroot. If missing, set up withmkarchroot.- If
updpkgsumsfails due to a re-rolled upstream tarball, verify the file content before accepting new hashes. - If the
sync-package.shmerge produces conflicts, manual intervention is required. Hybrid merge conflict recovery is not yet automated (seedocs/TODO.md).