File: rules

package info (click to toggle)
golang-github-proglottis-gpgme 0.0~git20181127.3b0be09-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 156 kB
  • sloc: ansic: 124; makefile: 12
file content (18 lines) | stat: -rwxr-xr-x 625 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := github.com/proglottis/gpgme/examples
export DH_GOLANG_EXCLUDES_ALL := 1

%:
	dh $@ --buildsystem=golang --with=golang

SUN_PATH_LIMIT=108

# workaround bug in gpg-agent: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847206
override_dh_auto_test:
	SOCKET_PATH="$(CURDIR)/testdata/gpghome/S.gpg-agent" ; \
	if [ $${#SOCKET_PATH} -gt $(SUN_PATH_LIMIT) ]; then \
	    echo "W: current path too long ($${#SOCKET_PATH} > 108), skipping tests: $$SOCKET_PATH" ; \
	else \
		echo "I: current path not too long, running tests ($${#SOCKET_PATH}): $$SOCKET_PATH"; dh_auto_test ;\
	fi