pack/README.md

29 lines
1 KiB
Markdown
Raw Normal View History

2019-09-03 21:43:28 +00:00
# Pack
2019-09-03 10:37:49 +00:00
Extremely in progress
### Disclaimer
This has hardly been worked on and is essentially useless at its current state. Please don't use this unless you plan on developing it.
### TODO
[ ] Parse cmdline options well, including parsing the package name from the package repo
2019-09-03 15:26:02 +00:00
2019-09-03 10:37:49 +00:00
[ ] Make a KO
2019-09-03 15:26:02 +00:00
2019-09-03 10:37:49 +00:00
[ ] Correctly download from several repos
2019-09-03 15:26:02 +00:00
2019-09-03 10:37:49 +00:00
[ ] Unpack tarballs of various types
2019-09-03 15:26:02 +00:00
2019-09-03 10:37:49 +00:00
[ ] More, probably
2019-09-03 21:43:28 +00:00
### Building and Setup
2019-09-03 23:20:38 +00:00
This project can be built automatically using a lua script found in ./scripts/build. If you do not have lua or otherwise do not wish to use this script, you can do it manually as well.
To manually build and set up, first run `cargo build --release`. Then, run scripts/setup.sh to setup your environment. Then copy target/release/pack to somewhere in your path, such as ~/.local/bin.
2019-09-03 15:26:02 +00:00
### Usage
Firstly, to setup your environment, run scripts/arch.sh. The syntax of the command is as follows:
2019-09-03 23:20:38 +00:00
`sudo pack {package name}::{repo type}`
2019-09-03 15:26:02 +00:00
2019-09-03 23:20:38 +00:00
This will add the tarball found at {package name} to /usr/pack/repo/{repo type}/tarballs.