File: rules

package info (click to toggle)
usbrelay 1.0-2.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 740 kB
  • sloc: ansic: 618; python: 100; makefile: 58; xml: 25; sh: 5
file content (27 lines) | stat: -rwxr-xr-x 708 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
25
26
27
#!/usr/bin/make -f

DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1

include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/pkg-info.mk
# export DH_VERBOSE=1

export PYBUILD_NAME=usbrelay

%:
	dh $@ --with python3

# When the package is built from git repo, its build system extracts
# the version from git. When we build it for Debian, we don't have the
# upstream tags so we set the version explicitly.
override_dh_auto_build:
	dh_auto_build -- GIT_VERSION="$(DEB_VERSION)" DIR_VERSION="$(DEB_VERSION)"
	dh_auto_build --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install
	dh_auto_install --buildsystem=pybuild

override_dh_installudev:
	dh_installudev --priority=92