README.md

Native Arch package

Arch uses the native root go.mod (gotk4/pkg v0.4.1), installed GTK4 and the system SVG loader (librsvg). GTK/GLib/Pango, libc and driver libraries are host provided, not bundled. The AppImage is a separate option on glibc-based Arch.

In an existing compatible Arch development environment:

sh
1./packaging/arch/build.sh 1
2# Or explicitly select an existing authorized Distrobox:
3ARCH_BUILD_BOX=arch-dev ./packaging/arch/build.sh 1

The optional positional argument is numeric PKGREL. The recipe's pkgver must match appVersion in cmd/native/version.go. Prerequisites are base-devel, Go >=1.27, GTK4, GObject introspection, pkgconf and desktop-file-utils. The helper does not install tools/packages, create boxes or modify the host. On immutable or shared hosts use the authorized development environment rather than a host package install.

To build a frozen input from the release guide:

sh
1ARCH_BUILD_BOX=arch-dev \
2SPLOTCH_SOURCE_INPUT="$PWD/packaging/build/inputs/candidate-example/tree" \
3SPLOTCH_DIST_ROOT="$PWD/packaging/build/candidates/candidate-example" \
4 ./packaging/arch/build.sh 1

The common source exporter supplies the canonical complete splotch-blot/ archive and external source-input.json. Both are checksummed in the staged PKGBUILD. makepkg builds/tests from that export alone, without .git. The source-input record travels with the staged recipe; source bytes alone are not a provenance record. No native module pin is changed.

Without an explicit frozen input the helper freezes tracked working bytes into a new candidate export under packaging/build/inputs/arch-<version>-<pkgrel>/. From an exported tree it uses its existing provenance. Outputs default to packaging/build/arch/<version>-<pkgrel>/; SPLOTCH_DIST_ROOT remains a compatible override for both outputs and automatic freezes. Existing outputs are refused. They include the package, exact source archive and input record, staged PKGBUILD, .SRCINFO, build log and SHA256SUMS. Source/private-artifact paths are never included by copying a whole checkout blindly.

Build scratch is disposable. Retain selected packages and metadata before using the build cleaner.

The native package installs the executable, desktop entry/icon, application and compiled Go dependency notices, exact application source-input identity and resolved build-info. It points to ordinary upstream binding sources rather than embedding a binding tarball. It does not claim to archive every package in a rolling Arch host. The AppImage/.deb artifact source collector is documented separately. Builds use PIE/trimpath; split-debug is disabled to avoid debugedit failures on Go's DWARF. Ordinary makepkg stripping stays enabled.

Install / publication

On a conventional pacman-managed Arch machine, the user may install/remove a verified package with pacman -U / pacman -R splotch-blot. This is not permission to install onto an immutable development host. Validate the exact package's real desktop behavior, not only its build; older artifacts do not validate new inputs.

The tracked PKGBUILD is a local-source template, not an AUR-ready public recipe. Before approved publication, use the approved annotated source export, actual versioned source URL/hash and corresponding provenance hash, then regenerate .SRCINFO. Do not upload invented URLs or silently substitute a dirty candidate. No commit, tag, AUR submission or remote publication is performed by these tools.