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
#!/usr/bin/make -f
# debian/rules for agtop — builds the Rust binary, offline, against
# the vendored crates that packages/ppa/build.sh stages into the
# orig.tar.gz before debuild runs.
#
# Launchpad PPA builders have NO network during the build phase, so
# we cannot rely on dh-cargo's default behaviour of resolving deps
# against crates.io or against Debian's `librust-*-dev` archive.
# Instead the upstream tarball ships:
#
# vendor/ cargo-vendor output, full dep tree
# .cargo/config.toml redirects crate fetches to vendor/
#
# `--frozen --offline` then make cargo refuse to touch the network.
export DEB_BUILD_MAINT_OPTIONS =
export RUSTFLAGS =
export CARGO_NET_OFFLINE =
# Pin to noble's rustc-1.89 / cargo-1.89. Stock noble ships
# rustc 1.75 (no edition2024); a number of our deps require Rust
# >= 1.88 (sysinfo, ratatui, darling, instability, time…) and
# edition2024 (clap_derive et al, stabilised in 1.85). 1.89 is
# the highest noble-main rustc that satisfies both.
CARGO ?=
RUSTC ?=
export CARGO RUSTC
:
:
:
:
: