File: rules

package info (click to toggle)
hdmi2usb-mode-switch 0.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,392 kB
  • sloc: python: 2,327; makefile: 62; xml: 61; sh: 15
file content (21 lines) | stat: -rwxr-xr-x 693 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
#!/usr/bin/make -f

export PYBUILD_DESTDIR=debian/hdmi2usb-mode-switch
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/hdmi2usb-mode-switch/ \
                            --install-scripts=/usr/share/hdmi2usb-mode-switch/

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install
	# udev rules
	sed -e's#/etc/udev/rules.d/hdmi2usb-human-path-helper.sh#/lib/udev/hdmi2usb-human-path-helper#' \
		$(sort $(wildcard udev/*.rules)) > debian/hdmi2usb-udev.udev

override_dh_auto_test:
	# Only one test, and it isn't really appliccable to an autobuilder environment

override_dh_installudev:
	# Sort after 60-persistent-v4l.rules
	dh_installudev --priority=70