File: rules

package info (click to toggle)
tpm2-pkcs11 1.9.0-0.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,676 kB
  • sloc: ansic: 27,532; sh: 5,707; python: 3,080; makefile: 109; java: 102
file content (24 lines) | stat: -rwxr-xr-x 603 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

export PYBUILD_NAME=tpm2-pkcs11-tools
export PYBUILD_DIR=$(CURDIR)/tools

D=$(CURDIR)/debian
D_PY=$D/python3-tpm2-pkcs11-tools
D_TOOLS=$D/libtpm2-pkcs11-tools

export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,now

override_dh_auto_configure:
	dh_auto_configure -- --enable-unit --enable-fapi=no

override_dh_auto_build-indep:
	dh_auto_build --buildsystem pybuild

override_dh_auto_install-indep:
	dh_auto_install --buildsystem pybuild
	mkdir -p -- '${D_TOOLS}/usr/bin'
	mv -- '${D_PY}/usr/bin/tpm2_ptool' '${D_TOOLS}/usr/bin/'
	rmdir -- '${D_PY}/usr/bin'
%:
	dh $@ --exclude=.la --exclude=.pc