Fast, quirky and experimental like Luna Lovegood. Luna builds and installs software from Git repositories using package recipes.
Luna requires Python 3.10+, Git, and the tools needed to build your chosen packages. The GUI also requires Tkinter.
python3 -m pip install git+https://github.com/Neonwave175/Luna.gitAdd ~/.local/luna to your PATH if your package recipes install executables there. Recipes run shell commands with your user permissions; only use commands and repositories you trust.
luna add <name> <git-url> <compile-command> [configure-command] [install-command]registers a package. Quote commands containing spaces.luna install <name> [name ...]builds and installs packages. A JSON lunafile can also be supplied in place of a name.luna sync <file>registers and installs the packages in a lunafile.luna listlists registered packages and their installation status.luna updateupdates installed packages.luna remove <name>removes its source directory and an executable with the same name in~/.local/luna, and marks it uninstalled. Files installed elsewhere by a recipe must be removed separately.
A lunafile is a JSON array of objects with Name, URL, and optional Config, Compile, and Install fields.
Run luna-gui to launch the Tkinter interface.
from luna import lunaapi as luna
luna.add("tokei", "https://github.com/XAMPPRocky/tokei.git",
"cargo build --release", "",
"mkdir -p ~/.local/luna && cp target/release/tokei ~/.local/luna/")
luna.install("tokei", log_cb=print)
print(luna.list_packages())
print(luna.get("tokei"))
print(luna.needs_update("tokei"))
luna.update_all()
luna.remove("tokei")Recipes and sources are stored under ~/.local/lunaorigin and ~/.local/lunasource. The API's set_root(path) changes the parent directory for these locations; set_root() restores the default.
