#!/usr/bin/make -f include /usr/share/dpkg/pkg-info.mk include /usr/share/dpkg/architecture.mk NO_PIE_ARCHS := mips64el mipsel riscv64 BUILDFLAGS = $(if $(filter $(DEB_HOST_ARCH),$(NO_PIE_ARCHS)),,-buildmode=pie) \ -ldflags "-X main.Version=$(DEB_VERSION_UPSTREAM)" %: dh $@ --builddirectory=debian/_build --buildsystem=golang override_dh_auto_build: dh_auto_build -- $(BUILDFLAGS) # riscv64: panic: test timed out after 10m0s # https://buildd.debian.org/status/fetch.php?pkg=age&arch=riscv64&ver=1.3.1-1&stamp=1773127362&raw=0 override_dh_auto_test: dh_auto_test $(DH_BUILD_OPTS) -- -timeout 30m