From b9e2e838386b6eab674060568f0873320c44055c Mon Sep 17 00:00:00 2001 From: Liam Waldron Date: Thu, 27 Oct 2022 09:49:51 -0400 Subject: [PATCH] Update 'Creating Packages' --- Creating-Packages.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Creating-Packages.md diff --git a/Creating-Packages.md b/Creating-Packages.md new file mode 100644 index 0000000..16ca7ad --- /dev/null +++ b/Creating-Packages.md @@ -0,0 +1,23 @@ +Creating packages should be fairly straightforward. + +Before you begin, this guide assumes you have `gpc` installed. + +First, obtain the source tree of the program you wish to package. + +Next, import the Glacier package template: + + `$ wget https://git.everestlinux.org/EverestLinux/glacier-pkg-template/raw/branch/main/template.tar.gz && tar -xvf template.tar.gz && mv template/* . && rmdir template` + +Edit the `pkginfo.json` file accordingly. + +Edit the `INSTALL.sh`, `UPDATE.sh`, and `REMOVE.sh` files. Each should outline the commands needed for each operation. + +Ensure the timestamp file is correct. + +From outside the working directory, run: + + `$ gpc check package_name` + +If all tests return as successful, run: + + `$ gpc mkpkg package_name` \ No newline at end of file