Add debian/ packaging

This commit is contained in:
Ian Douglas Scott 2024-10-16 21:35:18 -07:00
parent 0ca4ee69d3
commit e35c8767d1
5 changed files with 49 additions and 4 deletions

22
debian/rules vendored Executable file
View file

@ -0,0 +1,22 @@
#!/usr/bin/make -f
export DESTDIR = debian/tmp
export VENDOR ?= 1
%:
dh $@
override_dh_auto_clean:
if ! ischroot && test "${VENDOR}" = "1"; then \
mkdir -p .cargo; \
cargo vendor | head -n -1 > .cargo/config.toml; \
echo 'directory = "vendor"' >> .cargo/config.toml; \
tar pcf vendor.tar vendor; \
rm -rf vendor; \
fi
override_dh_auto_build:
just build-vendored
override_dh_auto_install:
just rootdir=$(DESTDIR) install