File: rules

package info (click to toggle)
scute 1.5.0%2Bgit20160808%2B94eeb2d-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 4,192 kB
  • ctags: 1,846
  • sloc: sh: 22,149; ansic: 9,973; makefile: 136
file content (23 lines) | stat: -rwxr-xr-x 666 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
#!/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 $@ --with autoreconf

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/