Skip to content

feat(linux/packaging): Arch package, AUR PKGBUILD and release assets - #16

Merged
LoganRupe merged 5 commits into
mainfrom
feature/linux/arch-packaging
Nov 1, 2026
Merged

LoganRupe merged 5 commits into
mainfrom
feature/linux/arch-packaging

Conversation

@LoganRupe

Copy link
Copy Markdown
Owner

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 cursorfollow once it's published there), and the release workflow now attaches cursorfollow-<ver>-1-x86_64.pkg.tar.zst and cursorfollow-<ver>-x86_64.tar.gz (the usr/ 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 in archlinux:latest, runs check() (make test), fails on namcap errors, and checks .SRCINFO is current.

Two Makefile fixes came out of it. A DESTDIR install wrote mimeinfo.cache and icon-theme.cache into the staging tree, which would make pacman -U fail with "exists in filesystem". Staged installs now leave those to pacman's hooks. Linking also ignored LDFLAGS, so the binary missed Arch's RELRO/now hardening (namcap flagged it). The 0.5.2 tag still has the old Makefile, so package() 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 -Ql lists the binary, desktop file, icon and license. The packaged binary launched on Hyprland 0.56 and opened the CursorFollow Output window.

Platforms

  • macOS: built and tested
  • Windows: built and tested
  • Linux: built and tested
  • Other platforms need the same change: no, Linux packaging only

Checklist

  • CHANGELOG.md updated under Unreleased (if user-visible)
  • Signing, entitlements or identifiers changed? No.

Logan Rupe 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.
@LoganRupe
LoganRupe merged commit 3f044cf into main Nov 1, 2026
8 checks passed
@LoganRupe
LoganRupe deleted the feature/linux/arch-packaging branch November 1, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant