Add packaging

This commit is contained in:
Jeremy Soller 2023-12-21 09:05:59 -07:00
parent d2515e9653
commit 6b378a445a
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
11 changed files with 190 additions and 58 deletions

22
debian/rules vendored Executable file
View file

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