File: rules

package info (click to toggle)
fwupd-arm64-signed 1.5.7%2B4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 52 kB
  • sloc: sh: 57; makefile: 10
file content (15 lines) | stat: -rwxr-xr-x 422 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f
# -*- makefile -*-

PACKAGE_NAME  := fwupd
SIG_PKG_NAME  := fwupd-arm64-signed
SIGNATURE_DIR := debian/signatures/$(PACKAGE_NAME)
BINARY        := $(shell find /usr/libexec/fwupd/efi -name '*.efi' | xargs basename)

%:
	dh $@

override_dh_auto_build:
	cp /usr/libexec/fwupd/efi/$(BINARY) .
	sbattach --attach $(SIGNATURE_DIR)/usr/libexec/fwupd/efi/$(BINARY).sig $(BINARY)
	mv $(BINARY) $(BINARY).signed