#455 AUR packages for Arch Linux: the server and the desktop app
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#455
- pull request
- state:merged
Closes #331. **Packages** - **`openchronology-server`:** builds `och-convert` and `pgmp` from the release's platform archive, for Arch's PostgreSQL. - It lays the server out as the Debian package does, with the same services, configuration templates and commands, running on Arch's Node.js. `/usr/lib/openchronology/node/bin/node` links to `/usr/bin/node`. - As Arch packages do, installing sets nothing up. It says to run `sudo openchronology-setup`, adapted from the RPM one, which initializes PostgreSQL in `/var/lib/postgres/data` if it isn't yet, writes the configuration, creates the database with pgmp, migrates and starts the service. - Upgrades stop the services and say what to review, then `openchronology-migrate` starts them again, as the other packages do. Removal keeps the configuration and database, and says how to delete them. - **`openchronology-desktop-bin`:** unpacks the release's desktop `.deb`. It depends on `gmp`, `sqlite`, `webkit2gtk-4.1` and `gtk3`. **Rendering:** `scripts/aur-packages.mjs` renders both from `deploy/arch`, with checksums. A file without a URL is copied beside the PKGBUILD as a local source, which is how CI builds them. **CI** - `server-packages.yml` gains **Server / arch**. It renders the package for the platform archive, builds it with makepkg in a fresh `archlinux` container, then installs, sets up, runs, upgrades and removes it (`test/server-arch.mjs`, modelled on `server-rpm.mjs`, with the same service and upgrade checks). - `desktop.yml` gains **Desktop / arch**. It builds the package from the `.deb` and installs it, checking the launcher, icon, licence, and that every library it links is found. **Releases:** stable releases get an `aur` job. It renders both packages for the release's assets, writes each `.SRCINFO` with `makepkg --printsrcinfo`, and pushes them to aur.archlinux.org. - **Needs your setup:** create an AUR account, add an SSH key to it, and store the private key as the repository secret `AUR_SSH_KEY`. The first push creates each package. Until then the job notes that it published nothing, and passes. **Tested locally** with v0.21.0's assets: - `server-arch`: PASS on Arch's current PostgreSQL 18.6 and Node 26. Our other packages use PostgreSQL 16–18 and bundle Node 24. - `desktop-arch`: PASS. - Unit tests pass, apart from `contents.test`'s known false failure about the local `node_modules` link. The renamed README heading's link in `docs/syslog.md` is updated. **Caveat (in README.Arch):** pgmp is built for the PostgreSQL installed at build time. After an Arch PostgreSQL major upgrade, the cluster needs `pg_upgrade` as usual, and this package needs rebuilding. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/pull/455
Related
Open #455 AUR packages for Arch Linux: the server and the desktop app in the timeline