Add debian packaging

This commit is contained in:
Jeremy Soller 2023-10-27 14:59:41 -06:00
parent 7d4d25ef85
commit c0d2f235e4
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
9 changed files with 133 additions and 2 deletions

22
debian/rules vendored Executable file
View file

@ -0,0 +1,22 @@
#!/usr/bin/make -f
export DESTDIR = debian/cosmic-edit
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