|
|
|
@ -12,7 +12,7 @@
|
|
|
|
|
<a href="https://github/crystal-linux/amethyst"><img alt="GitHub isses" src="https://img.shields.io/github/issues-raw/crystal-linux/amethyst"></a>
|
|
|
|
|
<a href="https://github/crystal-linux/amethyst"><img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr-raw/crystal-linux/amethyst"></a><br>
|
|
|
|
|
<a href="https://discord.gg/hYJgu8K5aA"><img alt="Discord" src="https://img.shields.io/discord/825473796227858482?color=blue&label=Discord&logo=Discord&logoColor=white"> </a>
|
|
|
|
|
<a href="https://github.com/ihatethefrench"> <img src="https://img.shields.io/badge/Maintainer-@not%2D-my%2D-segfault-brightgreen" alt=The maintainer of this repository" href="https://github.com/not-my-segfault"></a><br>
|
|
|
|
|
<a href="https://github.com/not-my-segfault"> <img src="https://img.shields.io/badge/Maintainer-@not%2D-my%2D-segfault-brightgreen" alt=The maintainer of this repository" href="https://github.com/not-my-segfault"></a><br>
|
|
|
|
|
<a href="https://fosstodon.org/@crystal_linux"><img alt="Mastodon Follow" src="https://img.shields.io/mastodon/follow/108618426259408142?domain=https%3A%2F%2Ffosstodon.org">
|
|
|
|
|
<a href="https://twitter.com/crystal_linux"><img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/crystal_linux"></a>
|
|
|
|
|
</a>
|
|
|
|
@ -25,30 +25,33 @@ Made for Crystal, compatible with any Arch-based Linux distribution.
|
|
|
|
|
|
|
|
|
|
### Basic usage
|
|
|
|
|
|
|
|
|
|
| Action | FreeBSD pkg-style alias | Pacman-style flags |
|
|
|
|
|
|----------------------|-------------------------|--------------------|
|
|
|
|
|
| Install a package | ame ins/install | ame -S |
|
|
|
|
|
| Remove a package | ame rm/remove | ame -R/-Rs |
|
|
|
|
|
| Upgrade a package | ame upg/upgrade | ame -Syu |
|
|
|
|
|
| Search for a package | ame sea | ame -Ss |
|
|
|
|
|
| Action | FreeBSD pkg-style alias | Pacman-style flags |
|
|
|
|
|
|------------------------|-------------------------|--------------------|
|
|
|
|
|
| Install a package | ame ins/install | ame -S |
|
|
|
|
|
| Remove a package | ame rm/remove | ame -R/-Rs |
|
|
|
|
|
| Upgrade a package | ame upg/upgrade | ame -Syu |
|
|
|
|
|
| Search for a package | ame sea/search | ame -Ss |
|
|
|
|
|
| Query the package list | ame qu/query | ame -Q |
|
|
|
|
|
| Show a package's info | ame inf/info | ame -Qi |
|
|
|
|
|
| Clean the pacman cache | ame cl/clean | ame -Sc |
|
|
|
|
|
| Check for .pacnew | ame di/diff | ame -D |
|
|
|
|
|
|
|
|
|
|
### Exit codes overview
|
|
|
|
|
|
|
|
|
|
| Exit Code (i32) | Reason |
|
|
|
|
|
|-----------------|----------------------------------------------------------|
|
|
|
|
|
| 1 | Running ame as UID 0 / root |
|
|
|
|
|
| 2 | Failed adding package to database |
|
|
|
|
|
| 3 | Failed initialising database |
|
|
|
|
|
| 4 | Error creating cache and/or database paths |
|
|
|
|
|
| 5 | Could not find one or more required package dependencies |
|
|
|
|
|
| 6 | User cancelled package installation |
|
|
|
|
|
| 7 | Pacman error when installing package |
|
|
|
|
|
| 8 | Git error |
|
|
|
|
|
| 9 | makepkg error |
|
|
|
|
|
| 2 | Failed creating paths |
|
|
|
|
|
| 3 | Could not find one or more required package dependencies |
|
|
|
|
|
| 4 | User cancelled package installation |
|
|
|
|
|
| 5 | Pacman error when installing package |
|
|
|
|
|
| 6 | Git error |
|
|
|
|
|
| 7 | Makepkg error |
|
|
|
|
|
| 63 | Any other misc error |
|
|
|
|
|
|
|
|
|
|
### How to build:
|
|
|
|
|
|
|
|
|
|
Tested on latest Cargo (1.60.0-nightly)
|
|
|
|
|
Tested on latest Cargo (1.62.0-nightly)
|
|
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
|
@ -60,14 +63,10 @@ Tested on latest Cargo (1.60.0-nightly)
|
|
|
|
|
|
|
|
|
|
- `cargo build --release`
|
|
|
|
|
|
|
|
|
|
#### Pkg-warner included
|
|
|
|
|
|
|
|
|
|
- `cargo build (--release) --all --features=pkg-warner`
|
|
|
|
|
|
|
|
|
|
### TODO:
|
|
|
|
|
|
|
|
|
|
#### v3.6.0
|
|
|
|
|
- Allow editing of PKGBUILDs before install
|
|
|
|
|
- ~~Allow editing of PKGBUILDs before install~~
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
|
|