2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-23 07:40:11 -07:00
repo/README.md

77 lines
3.0 KiB
Markdown
Raw Normal View History

2019-07-16 05:43:54 -06:00
# KISS Package System
2019-05-09 01:59:27 -06:00
2019-07-17 00:14:44 -06:00
The package system was built specifically for KISS and employs a UNIX-like file model. Instead of the typical shell script with variables, arrays and functions; this system uses easily parseable plain text files.
The data in each file is separated by lines and spaces. The repository and packages can be manipulated and read using any programming language. The build script (for each package) can be written in whatever language you desire.
2019-07-21 15:17:21 -06:00
More information: <https://getkiss.org/pages/package-system/>
2019-07-17 00:14:44 -06:00
2019-07-17 00:13:28 -06:00
## Index
<!-- vim-markdown-toc GFM -->
* [Adding packages to this repository](#adding-packages-to-this-repository)
2019-07-17 00:20:58 -06:00
* [Example package](#example-package)
* [Generating checksums](#generating-checksums)
2019-07-17 00:13:28 -06:00
* [Committing changes](#committing-changes)
* [Pull requests](#pull-requests)
* [Linting](#linting)
2019-08-02 15:35:08 -06:00
* [Code style](#code-style)
2019-07-17 00:13:28 -06:00
<!-- vim-markdown-toc -->
## Adding packages to this repository
Unless for a good reason, new packages go in `public`. The `core`, `extra` and `xorg` repositories are updated on a case by case basis.
- `core`: Contains just enough to rebuild itself and any additional packages.
- `extra`: Contains essential packages which do not belong in `core`.
- `xorg`: Contains everything `xorg` related for a working `xorg-server`.
2019-07-21 03:11:03 -06:00
- `testing`: Contains packages which aren't ready for wide usage yet.
2019-07-17 00:13:28 -06:00
- `public`: Everything else.
2019-07-22 06:46:37 -06:00
When a package is added to `public` it is assumed that the **first** committer is now the maintainer of said package. The other repositories are maintained by the KISS developers themselves.
2019-07-17 00:13:28 -06:00
2019-07-17 00:20:58 -06:00
## Example package
A simple package to use as a reference is `file`. It has dependencies and uses the GNU configure style (*which a lot of packages use*).
2019-07-19 08:23:19 -06:00
https://github.com/kisslinux/repo/tree/master/core/file
2019-07-17 00:20:58 -06:00
## Generating checksums
Once you have packaged something (*and before the first build*) run `kiss checksum pkg` to generate checksums for the package.
2019-07-17 00:13:28 -06:00
## Committing changes
One package per commit unless the packages are very closely related (`linux` and `linux-headers`).
Commit rules:
2019-07-17 00:16:44 -06:00
* **New packages**: `<package>: new package at <version>`
* **Existing packages**: `<package>: update to <version>`, `<package>: bump to <version>` is also acceptable.
* **Other package changes**: `<package>: <changes>`
* **Merges**: GitHub's default format is acceptable, or just `Merge #<PR number>` should suffice.
* **Misc**: We leave that to the discretion of the author and/or committer.
2019-07-17 00:13:28 -06:00
## Pull requests
Ensure that the package builds successfully on your system before creating a pull request. If for some reason it **does not**, open an issue if assistance is needed.
## Linting
All package `build` and `post-install` scripts are subject to checks using `shellcheck`. Packages must pass the linter to be accepted into the repository. Exceptions can be made using `shellcheck disable=SCXXXX` with good reason.
2019-08-02 15:35:08 -06:00
## Code style
2019-08-02 15:37:09 -06:00
- Indentation is 4 spaces.
2019-08-02 15:35:08 -06:00
- Keep variables lowercase unless they're environment variables.
- Use `#!/bin/sh -e`.
- Use `/usr` as the prefix.