#!/usr/bin/make -f # -*- makefile -*- PACKAGE_NAME := fwupdate SIG_PKG_NAME := fwupdate-arm64-signed SIGNATURE_DIR := debian/signatures/$(PACKAGE_NAME) BINARY := $(shell find /usr/lib/fwupdate/ -name '*.efi' | xargs basename) %: dh $@ override_dh_auto_build: cp /usr/lib/fwupdate/$(BINARY) . sbattach --attach $(SIGNATURE_DIR)/usr/lib/fwupdate/$(BINARY).sig $(BINARY) mv $(BINARY) $(BINARY).signed