Repository navigation
How To Make A Package
PB-Kronos edited this page Jun 18, 2026
·
7 revisions
Packages live in pkg/<name>/.
At minimum, a package should have:
manifest.luainstall.luaremove.lua
Optional:
upgrade.lua- extra Lua helpers
manifest.lua returns a table:
return {
version = "1.0",
desc = "Package description",
dependencies = { "base" },
}Supported dependency formats:
- a single string
- an array of strings
- an array of tables with fields like
name,package,pkg, or[1]
install.lua runs when the package is installed.
Typical responsibilities:
- copy files into the runtime
- create directories
- verify installation
- print progress messages
remove.lua should undo what install.lua did.
Example responsibilities:
- delete installed files
- clean up startup hooks
- remove directories only if they were created by the package
If your package requires another package, declare it in manifest.lua.
Example:
return {
version = "1.0",
desc = "My addon package",
dependencies = { "base", "sys" },
}Pacman will try to install dependencies first.
If your package has upgrade.lua, pacman can use it during upgrade.
If not, upgrade usually falls back to remove + install behavior.
If your package needs host-side Python files:
- place the files under
python/ - document any host-side behavior clearly
- Make a guide on how/where users should put your python files- Make sure to state that you use python files in any way and if they are an addition to any original/existing python files, you may (want to) get your files included in the next release.
pkg/example/
manifest.lua
install.lua
remove.lua
upgrade.lua