| Crates.io | bruh |
| lib.rs | bruh |
| version | 0.1.0 |
| created_at | 2021-02-18 13:26:42.498466+00 |
| updated_at | 2021-02-18 13:26:42.498466+00 |
| description | Homebruh is package manager for GNU/Linux |
| homepage | |
| repository | https://github.com/wafelack/homebruh |
| max_upload_size | |
| id | 357054 |
| size | 4,715,381 |
A GNU/Linux and MacOS package manager.
cargo install bruh$ git clone git@github.com:Wafelack/homebruh.git
$ cd homebruh/
$ cargo build --release
A package manifest describes the package, it has to be named bruh.toml.
It should contain the following keys:
name : The package nameversion: The package versionfiles : The folder containing the package contentOptional keys:
startup_script: The script to run before copying files.cleanup_script: The script to run after copying files.The files key directory recreates the filesystem ; e.g. if I have a usr/bin/bar in my files directory, when installed, there will be a bar file in /usr/bin.
To build the package, run bruh build in the package directory, this will produce a $NAME-$VERSION.bpkg file, this is the built package.
To install a local package, you will run bruh install -i $PACKAGE_FILE with, of course, your package filename instead of $PACKAGE_FILE.
:warning: It may need to be run as super user if the packages creates/removes files at write protected locations.
To uninstall a local package, you will run bruh uninstall -i $PACKAGE_FILE.
:warning: It may need to be run as super user if the packages removes files at write protected locations.
To synchronize the database (and have your package list up to date), run sudo bruh sync.
To install a remote package, you will run bruh install $package_name.
:warning: It may need to be run as super user if the packages creates/removes files at write protected locations.
To uninstall a remote package, you will run bruh uninstall $package_name.
:warning: It may need to be run as super user if the packages removes files at write protected locations.
Clone the repo git clone git@github.com:Wafelack/homebruh.git.
Go in the produced folder.
Create a branch for your adding git checkout -b add-$package (obviously replace $package with your package name)
Edit community/packages.list and add your package name.
Create the community/$package.toml (obviously replace $package with your package name) and add the following information in it:
sha256: Your package hash (for security purposes), you can obtain it by running sha256sum $package_file on GNU/Linux.link: The link where your package can be downloaded.Open a pull request on this repository with a title matching Adding $repository.
Your package should be added under 24 hours.