File: rules

package info (click to toggle)
alsa-utils 1.2.14-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 7,672 kB
  • sloc: ansic: 46,772; sh: 7,881; makefile: 597; xml: 590; sed: 16
file content (40 lines) | stat: -rwxr-xr-x 1,456 bytes parent folder | download
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
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export deb_udevdir = $(shell pkg-config --variable=udevdir udev | sed s,^/,,)
export deb_systemdsystemunitdir = $(shell pkg-config --variable=systemdsystemunitdir systemd | sed s,^/,,)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
			--with-asound-state-dir=/var/lib/alsa \
			--with-alsactl-home-dir=/run/alsa \
			--with-alsactl-runtime-dir=/run/alsa/runtime \
			--with-systemdsystemunitdir=/$(deb_systemdsystemunitdir) \
			--disable-alsaconf

override_dh_auto_test:
	# 'container-test' and 'mapper-test' for axfer take a long time.
	# # They are designed to check robustness of internal
	# implementation of axfer and do not necessarily need to run in
	# a process of deb packaging. Let's suppress them.
	dh_auto_test -- TESTS=''

override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp

# Kill *.la files, and make sure we install everything else
override_dh_install:
	mv debian/tmp/usr/sbin/alsa-info.sh debian/tmp/usr/sbin/alsa-info
	mv debian/tmp/usr/share/man/man8/alsa-info.sh.8 debian/tmp/usr/share/man/man8/alsa-info.8
	mv debian/tmp/usr/sbin/alsabat-test.sh debian/tmp/usr/sbin/alsabat-test
	find debian/tmp -name "*.la" -delete
	dh_install -Xusr/share/man/fr

override_dh_installchangelogs:
	dh_installchangelogs -XChangeLog

override_dh_installinit:
	dh_installinit --no-start