-A packaging harness for software of the ggml ecosystem.
+This packaging harness is based on git-buildpackage and simplifies the development of the packaging for software in the [ggml ecosystem](https://github.com/ggml-org).
+The software layers are configured as git submodules under the `sources/` subdirectory.
+ These git repositories follow Debian's [DEP-14](https://dep-team.pages.debian.net/deps/dep14/) layout
+ and can be used independently of this harness.
+
+# Quick start ####
To use, clone recursively, for example:
git clone --recurse-submodules --branch unstable https://git.djapps.eu/pkg/ggml
-The software layers are configured as submodules under the `sources` directory.
+Make sure that you have the necessary packages installed:
+
+ sudo apt install git-buildpackage cowbuilder
+
+Make sure you have a base for the distribution and arch that you are targeting:
-To build a layer, go to its directory and run:
+ sudo sh sources/create-pbuilder.sh <dist> <arch>
+
+For example:
+
+ sudo sh sources/create-pbuilder.sh bookworm amd64
+
+To build a layer, cd to its directory and run:
sh ../build-pbuilder.sh <dist> <arch> [<branch>]
cd sources/llama.cpp
sh ../build-pbuilder.sh bullseye amd64 debian/bullseye
+
+Except for `ggml` itself, pbuilder/cowbuilder needs to be configured appropriately
+ in order to use either a local repository with the `ggml` packages you just built,
+ or a remote repository with the required `ggml`-related packages.
+