Arch: package Kiri desktop UI (#526)

Co-authored-by: Cesar Roberto Pamplona Filho <cesarpamplonafilho@gmail.com>
This commit is contained in:
Precious OkwuandCesar Roberto Pamplona Filho authored and Precious Okwu committed 2026-11-26 06:29:29 +01:00
1 parent be2a1c5c99
commit 93ff60c770
4 files changed
+81

No files matched your search

+3
View File
@@ -1,4 +1,7 @@
/target
/packaging/arch/src/
/packaging/arch/pkg/
/packaging/arch/*.pkg.tar.zst
# Raw benchmark output: kept outside this repository.
/bench/results/
/guest/out/
+9
View File
@@ -86,6 +86,15 @@ there, so it wants `KIRI_TEST_KILL=1`).
Not yet: an apt/dnf repository (today the packages are release assets;
a repository is what gives `apt upgrade`), and signing.
## Arch Linux
`arch/PKGBUILD` builds `kiri-ui`, the desktop window (`kiri --features window`),
for Arch Linux (`x86_64` and `aarch64`, including Omarchy and Asahi). It
installs `/usr/lib/kiri/kiri-window` where `kiri ui` expects it, plus the
application-menu launcher and icons, without replacing an installed Kiri engine,
CLI, systemd service, Docker context, or container store. See `arch/README.md`
for build and install steps.
## Homebrew (planned, not built)
The Mac already has the app and the dmg; Homebrew is the third way in, for
+47
View File
@@ -0,0 +1,47 @@
pkgname=kiri-ui
pkgver=0.2.2
pkgrel=1
pkgdesc='Desktop window for the Kiri container runtime'
arch=('x86_64' 'aarch64')
options=('!lto')
url='https://runkiri.com'
license=('Apache-2.0')
depends=('gtk3' 'webkit2gtk-4.1')
makedepends=('rust' 'pkgconf')
optdepends=(
'kiri: Kiri engine and CLI, required to manage containers'
'polkit: graphical password prompt for engine setup'
)
source=("https://github.com/libracoder/kiri/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('aaa88911bdfc8e83253cefc9cfd884c3d0aa55ee9dc1f67a19b94564dde6fbbf')
prepare() {
cd "kiri-${pkgver}"
# Release archives keep 0.0.0 in the workspace manifest; stamp pkgver into
# Cargo.toml and sync workspace member entries in Cargo.lock offline.
sed -i "0,/^version = \"0.0.0\"$/s//version = \"${pkgver}\"/" Cargo.toml
cargo update --workspace --offline
}
build() {
cd "kiri-${pkgver}"
cargo build --locked --release -p kiri --features window
}
package() {
cd "kiri-${pkgver}"
install -Dm755 target/release/kiri "$pkgdir/usr/lib/kiri/kiri-window"
install -Dm644 contrib/linux/kiri.desktop "$pkgdir/usr/share/applications/kiri.desktop"
install -Dm644 brand/icon/kiri-app-icon.svg \
"$pkgdir/usr/share/icons/hicolor/scalable/apps/kiri.svg"
for size in 16 32 64 128 256 512; do
install -Dm644 "brand/icon/png/kiri-app-icon-${size}.png" \
"$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/kiri.png"
done
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 NOTICE "$pkgdir/usr/share/licenses/${pkgname}/NOTICE"
}
+22
View File
@@ -0,0 +1,22 @@
# Kiri UI on Arch Linux
`kiri-ui` packages the Linux desktop window (`kiri --features window`) for Arch
Linux (`x86_64` and `aarch64`, including Omarchy and Asahi). It installs the
executable at `/usr/lib/kiri/kiri-window`, where `kiri ui` launches it, along
with the desktop entry and icons.
The package intentionally leaves the Kiri engine, CLI, Docker context, and
container store untouched. Install it alongside an existing Kiri Linux engine
and CLI. GTK 3 and WebKitGTK 4.1 are required to build and run the window.
Build and install locally:
```sh
cd packaging/arch
makepkg -si
kiri ui --view containers
```
When updating `pkgver`, update `sha256sums` to the matching upstream release tag
archive (`v${pkgver}.tar.gz`) and keep the offline workspace version stamp in
`prepare()` so the window reports the installed package version.