File: rules

package info (click to toggle)
golang-github-proglottis-gpgme 0.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 176 kB
  • sloc: ansic: 124; makefile: 5
file content (21 lines) | stat: -rwxr-xr-x 752 bytes parent folder | download | duplicates (3)
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 DH_GOLANG_EXCLUDES := github.com/proglottis/gpgme/examples
export DH_GOLANG_EXCLUDES_ALL := 1
#export DH_GOLANG_INSTALL_EXTRA := testdata/

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

# magic number, copy-pasted from <sys/un.h>
UNIX_PATH_MAX=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.browser" ; \
#	if [ $${#SOCKET_PATH} -ge $(UNIX_PATH_MAX) ]; then \
#	    echo "W: current path too long ($${#SOCKET_PATH} > $(UNIX_PATH_MAX)), skipping tests: $$SOCKET_PATH" ; \
#	else \
#	    echo "I: current path not too long, running tests ($${#SOCKET_PATH}): $$SOCKET_PATH"; \
#	     dh_auto_test ;\
#	fi