Add AUR publishing via just publish-aur - #58
Merged
Merged
Conversation
Adds packaging/aur/{PKGBUILD,SRCINFO}.in templates for a new AUR
package `etr-terminal-bin` (x86_64 + aarch64, prebuilt GitHub release
binaries; the AUR names etr/etr-bin are taken by an unrelated tool).
`just publish-aur` verifies the release assets exist, checksums them,
renders both files, and pushes to the AUR git repo; `just publish` now
runs it after cargo publish. Bump version to 0.7.0.
Assisted-By: Claude Fable 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds publishing to the AUR as part of the release flow, as a new binary package
etr-terminal-bin(x86_64 + aarch64).packaging/aur/PKGBUILD.in+packaging/aur/SRCINFO.in: templates for the AUR package, installing the prebuiltetr/etrsbinaries from the GitHub release assets. Both files render from the same substitution pass soPKGBUILDand.SRCINFOcan never disagree.just publish-aur: verifies the current version's GitHub release assets exist (hard-fails with instructions if the release hasn't built yet), downloads them and computes sha256 checksums, renders the templates, clonesssh://aur@aur.archlinux.org/etr-terminal-bin.git, commits, and pushes. Exits cleanly with no empty commit if the AUR repo already matches.just publishnow invokesjust publish-auraftercargo publish, so one command publishes crates.io + AUR (ordering: tag → release build →just publish).packaging/excluded from the crates.io package; README + NOTES.md + wiki (Getting-Started) document the new install path.Why
Arch users currently have only
cargo install etror manual GitHub release downloads. This gives themparu -S etr-terminal-bin.Naming note: the AUR names
etrandetr-binare already taken by an unrelated ECMP-traceroute tool that also installs/usr/bin/etr. The package therefore usesetr-terminal-bin, declaresconflicts=('etr' 'etr-bin'), and deliberately does not declareprovides=('etr')(that would wrongly satisfy dependencies on the other tool).Test plan
just prgate passed: fmt, clippy, all 112 tests, man pages, Cargo.lock, version/NOTES.md checks.bash -npasses on the PKGBUILD; zero unsubstituted@…@placeholders remain in either file.sedblock from thepublish-aurrecipe against the templates.just publish-aur(requires an SSH key registered with an AUR account); the first push creates the package.No Rust code changes; test count unchanged (112).
🤖 Generated with Claude Code