File: rules

package info (click to toggle)
scute 1%3A1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 3,696 kB
  • sloc: sh: 11,956; ansic: 7,954; makefile: 142
file content (27 lines) | stat: -rwxr-xr-x 725 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
# -*- gmakefile -*-

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_test:
	mkdir -p debian/dot-gnupg
	chmod og-rx debian/dot-gnupg
	echo debug-disable-ticker >debian/dot-gnupg/scdaemon.conf
	GNUPGHOME=${CURDIR}/debian/dot-gnupg gpg-agent --daemon dh_auto_test
	rm -rf debian/dot-gnupg

override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp
	mkdir -p debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/scute
	mv debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/scute.so \
		debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/scute/

# Do not add an ldconfig trigger.
override_dh_makeshlibs:
	dh_makeshlibs -n