From 33cdf485ca3f8f3d90bb5c27778b5b1ccb63f03b Mon Sep 17 00:00:00 2001 From: diviocity Date: Sat, 31 Oct 2026 23:59:48 +0100 Subject: [PATCH] added a packaging roadmap --- packaging/README.md | 43 ++++++++++++++++++++++++++++++++++++++++ packaging/abuild/.keep | 1 + packaging/ebuild/.keep | 1 + packaging/freebsd/.keep | 1 + packaging/macports/.keep | 1 + packaging/makepkg/.keep | 1 + packaging/openbsd/.keep | 1 + packaging/xbps-src/.keep | 1 + 8 files changed, 50 insertions(+) create mode 100644 packaging/README.md create mode 100644 packaging/abuild/.keep create mode 100644 packaging/ebuild/.keep create mode 100644 packaging/freebsd/.keep create mode 100644 packaging/macports/.keep create mode 100644 packaging/makepkg/.keep create mode 100644 packaging/openbsd/.keep create mode 100644 packaging/xbps-src/.keep diff --git a/packaging/README.md b/packaging/README.md new file mode 100644 index 0000000..87d761f --- /dev/null +++ b/packaging/README.md @@ -0,0 +1,43 @@ +# packaging/ + +Roadmap for distro packaging. One directory per recipe tool, recipes added +when written — nothing is implemented yet, the directories are stubs. + +| dir | tool | distro | recipe files when done | status | +|------------|-----------------------|----------|------------------------|--------| +| `makepkg/` | makepkg | Arch | `PKGBUILD` | stub | +| `abuild/` | abuild | Alpine | `APKBUILD` | stub | +| `ebuild/` | portage | Gentoo | `vendetta.ebuild` | stub | +| `xbps-src/` | xbps-src | Void | `template` | stub | +| `freebsd/` | ports framework | FreeBSD | `Makefile`, `distinfo`, `pkg-descr` | stub | +| `openbsd/` | bsd.port.mk | OpenBSD | `Makefile`, `distinfo`, `pkg/` | stub | +| `macports/` | MacPorts | macOS | `Portfile` | stub | + +Statuses: **stub** — directory only; **draft** — recipe written, untested +or unproven; **maintained** — the distro's own builder builds this tree +from it and it is kept current. + +## What every recipe must do + +- **Build** with the canonical command (AGENTS.md §2), from inside the + tree — `v.mod` beside `src/` is what makes the `libvendetta` subimports + resolve: + ``` + v -new-compiler -prod -d ui2_custom_rendering src -o vendetta + ``` + `-new-compiler` wants a current compiler, so the recipe builds V + (`vlang/v` master) itself or documents the required floor; `v install + ui2` as in the nightly musl runner (`.forgejo/workflows/nightly_musl.yaml`). + Per-OS variants (macOS's two mandatory defines, BSD include/lib paths) + follow §2's build-mode table. +- **Install** `/usr/lib/vendetta/{vendetta,assets/}` plus a `/usr/bin` + symlink. That layout follows ui2's font search (`font_bundle_dirs` + checks the executable's own directory first, `os.executable()` resolves + through a symlink), and the shipped faces keep a fontless machine + rendering identically (`assets/fonts/README.md`). +- **Package no state files**: everything lives in `/vendetta/` + under the user's home (AGENTS.md §12). +- **Pin the source** (a commit hash, not a moving ref), checksum it for + real, and derive `pkgver` from `v.mod` until real tags exist. + +Status per target lives here when recipes land. diff --git a/packaging/abuild/.keep b/packaging/abuild/.keep new file mode 100644 index 0000000..276c962 --- /dev/null +++ b/packaging/abuild/.keep @@ -0,0 +1 @@ +stub: see ../README.md diff --git a/packaging/ebuild/.keep b/packaging/ebuild/.keep new file mode 100644 index 0000000..276c962 --- /dev/null +++ b/packaging/ebuild/.keep @@ -0,0 +1 @@ +stub: see ../README.md diff --git a/packaging/freebsd/.keep b/packaging/freebsd/.keep new file mode 100644 index 0000000..276c962 --- /dev/null +++ b/packaging/freebsd/.keep @@ -0,0 +1 @@ +stub: see ../README.md diff --git a/packaging/macports/.keep b/packaging/macports/.keep new file mode 100644 index 0000000..276c962 --- /dev/null +++ b/packaging/macports/.keep @@ -0,0 +1 @@ +stub: see ../README.md diff --git a/packaging/makepkg/.keep b/packaging/makepkg/.keep new file mode 100644 index 0000000..276c962 --- /dev/null +++ b/packaging/makepkg/.keep @@ -0,0 +1 @@ +stub: see ../README.md diff --git a/packaging/openbsd/.keep b/packaging/openbsd/.keep new file mode 100644 index 0000000..276c962 --- /dev/null +++ b/packaging/openbsd/.keep @@ -0,0 +1 @@ +stub: see ../README.md diff --git a/packaging/xbps-src/.keep b/packaging/xbps-src/.keep new file mode 100644 index 0000000..276c962 --- /dev/null +++ b/packaging/xbps-src/.keep @@ -0,0 +1 @@ +stub: see ../README.md -- 2.56.1