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
|
2019-09-06 00:17:59 +00:00
|
|
|
[\*] 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
|
|
|
[ ] Correctly download from several repos
|
2019-09-03 15:26:02 +00:00
|
|
|
|
2019-09-06 00:17:59 +00:00
|
|
|
[\*] Unpack tarballs of various types
|
|
|
|
|
|
|
|
[ ] Correctly install binaries in system
|
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-06 00:15:30 +00:00
|
|
|
A build and setup script has been included as `scripts/build`, but as it is written in Lua, you may wish to setup yourself. To do that,
|
|
|
|
1. Run `cargo build --release`
|
|
|
|
2. Run `scripts/setup.sh`
|
|
|
|
3. Run `scripts/mkenv.sh arch_core` to setup the arch core repo
|
|
|
|
4. Add /usr/pack/bin to path
|
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-04 15:09:29 +00:00
|
|
|
`sudo pack {url}::{repo type}`
|
2019-09-03 15:26:02 +00:00
|
|
|
|
2019-09-04 15:09:29 +00:00
|
|
|
This will add the tarball found at {url} to /usr/pack/repo/{repo type}/tarballs.
|