Repository navigation
feat(linux/packaging): Arch package, AUR PKGBUILD and release assets - #16
Merged
Merged
Conversation
added 5 commits
November 2, 2026 09:31
…talls A DESTDIR install wrote mimeinfo.cache and icon-theme.cache into the staging tree, so a package built from it would ship files that clash with the system caches pacman's hooks maintain. Linking also ignored LDFLAGS, which dropped the distro's RELRO/now hardening.
PKGBUILD for the AUR (cursorfollow, x86_64 and aarch64) built from the v$pkgver tag tarball, plus its .SRCINFO. package-arch.sh builds the same PKGBUILD from the current checkout and also emits the DESTDIR install tree as a tarball, for CI and the release workflow.
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 and why
Arch and Omarchy users can install CursorFollow as a package instead of building it. This adds a PKGBUILD for the AUR (
yay -S cursorfollowonce it's published there), and the release workflow now attachescursorfollow-<ver>-1-x86_64.pkg.tar.zstandcursorfollow-<ver>-x86_64.tar.gz(theusr/install tree) to each tagged release.The PKGBUILD builds from the v0.5.2 tag tarball with a pinned sha256. CI and the release job build the same PKGBUILD from the checked-out commit through
CursorFollowLinux/scripts/package-arch.sh, so a packaging break fails on the PR that caused it. CI runs makepkg as a non-root user inarchlinux:latest, runscheck()(make test), fails on namcap errors, and checks.SRCINFOis current.Two Makefile fixes came out of it. A
DESTDIRinstall wrotemimeinfo.cacheandicon-theme.cacheinto the staging tree, which would makepacman -Ufail with "exists in filesystem". Staged installs now leave those to pacman's hooks. Linking also ignoredLDFLAGS, so the binary missed Arch's RELRO/now hardening (namcap flagged it). The 0.5.2 tag still has the old Makefile, sopackage()deletes the two caches; that line can go after the next release.Verified locally: makepkg from the tag tarball with checksum verification in a clean
archlinux:latest,pacman -U(icon and desktop hooks ran),pacman -Qllists the binary, desktop file, icon and license. The packaged binary launched on Hyprland 0.56 and opened the CursorFollow Output window.Platforms
Checklist
CHANGELOG.mdupdated under Unreleased (if user-visible)