bootc-deb/debian/rules
robojerk 67ad7fa93d
Some checks failed
Build bootc Package / Build bootc Package (push) Failing after 2m44s
Test Build / Test bootc Build (with existing libostree) (push) Has been cancelled
rust issues
2025-07-21 22:40:08 +00:00

37 lines
No EOL
876 B
Makefile
Executable file

#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE = 1
# This has to be exported to make some magic below work.
export DH_OPTIONS
# Build system
export CARGO_HOME = $(CURDIR)/debian/cargo
export CARGO_TARGET_DIR = $(CURDIR)/debian/cargo/target
export PATH = $(HOME)/.cargo/bin:$(PATH)
# Apply our compatibility patch
override_dh_auto_patch:
# Apply the libostree compatibility patch
patch -p1 < ../bootc-libostree-compatibility.patch
dh_auto_patch
override_dh_auto_build:
# Build bootc with cargo - ensure rustup environment is loaded
rustup default stable
cargo build --release
dh_auto_build
override_dh_auto_install:
# Install the bootc binary
install -D -m 755 target/release/bootc debian/bootc/usr/bin/bootc
dh_auto_install
override_dh_auto_clean:
# Clean cargo build artifacts
rm -rf debian/cargo
dh_auto_clean
%:
dh $@