1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
This folder builds a `.deb` for **agtop** that ships the static Rust binary.
```sh
./build.sh
```
This will compile the release binary if needed (`cargo build --release`) and
produce `agtop_<version>_<arch>.deb` here. If `dpkg-deb` is on PATH it's used;
otherwise the script falls back to a pure `ar` + `tar` builder (a `.deb` is
just an `ar` archive containing `debian-binary`, `control.tar.gz`,
`data.tar.gz`).
```sh
sudo apt install ./agtop_0.2.0_amd64.deb
agtop --help
```
Removal:
```sh
sudo apt remove agtop
```
```
/usr/bin/agtop # static Rust binary (~3 MB stripped)
/usr/share/doc/agtop/ # README, copyright
```
No runtime dependencies — the binary is statically linked against musl-friendly
crates and only needs a working terminal.
To get this into the official Debian / Ubuntu repos you'll need to follow the
[Debian New Maintainer Guide](https://www.debian.org/doc/manuals/maint-guide/)
and rework the source under `debian/` with `debhelper` / `dh-cargo` and a
proper `debian/changelog`. The package built here is a binary `.deb` suitable
for direct distribution and PPA hosting.