build: adapt Arch Linux packaging

This commit is contained in:
dela
2026-06-10 11:24:46 +08:00
parent a2f82a86b6
commit 95a3e98c97
7 changed files with 225 additions and 26 deletions

36
packaging/arch/README.md Normal file
View File

@@ -0,0 +1,36 @@
# Arch package
This PKGBUILD is intended for Arch Linux and AUR-style release packaging. It
builds from the project release tag, uses Arch system libraries, and disables
FetchContent so package builds do not download dependencies during CMake
configure.
Before publishing a release package, replace the temporary `SKIP` checksum in
`PKGBUILD` with a real checksum, for example by running `updpkgsums` after the
tag archive is available.
## Build
```fish
cd packaging/arch
makepkg -f
```
## Install
```fish
cd packaging/arch
sudo pacman -U qemby-*.pkg.tar.zst
```
## Run
```fish
qemby
```
## Uninstall
```fish
sudo pacman -R qemby
```