export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export HOME = /tmp/build-home
export CARGO_HOME = $(HOME)/.cargo
export PATH := $(CARGO_HOME)/bin:$(PATH)
%:
dh $@
override_dh_auto_configure:
mkdir -p $(HOME)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
$(CARGO_HOME)/bin/rustc --version
$(CARGO_HOME)/bin/cargo --version
override_dh_auto_build:
$(CARGO_HOME)/bin/cargo build --release --locked
override_dh_auto_install:
install -D -m 0755 target/release/bssh debian/bssh/usr/bin/bssh
override_dh_auto_test:
@echo "Skipping tests for PPA build"
override_dh_auto_clean:
rm -rf target/ $(HOME)
dh_auto_clean
override_dh_builddeb:
dh_builddeb --destdir=../