build(deb): make buildable without vendoring

This commit is contained in:
Michael Aaron Murphy 2025-10-08 12:01:04 +02:00
parent 50b3222571
commit 2bba46ecfe
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

7
debian/rules vendored
View file

@ -1,18 +1,15 @@
#!/usr/bin/make -f #!/usr/bin/make -f
export DESTDIR = debian/tmp export DESTDIR = debian/tmp
export VENDOR ?= 1
%: %:
dh $@ dh $@
override_dh_auto_clean: override_dh_auto_clean:
if ! ischroot && test "${VENDOR}" = "1"; then \ ischroot || just vendor
just vendor; \
fi
override_dh_auto_build: override_dh_auto_build:
just build-vendored test -e vendor.tar && just build-vendored || just
override_dh_auto_install: override_dh_auto_install:
just rootdir=$(DESTDIR) install just rootdir=$(DESTDIR) install