diff --git a/debian/rules b/debian/rules
index 6acb71e..7da1377 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,7 @@ ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
endif
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
-golang_archs = armel armhf amd64 i386 arm64 ppc64 ppc64el s390x
+golang_archs = armel armhf i386 arm64 ppc64 ppc64el s390x
IS_GOLANG_ARCH := true
ifeq (,$(filter $(DEB_HOST_ARCH),$(golang_archs)))
IS_GOLANG_ARCH := false
@@ -84,12 +84,15 @@ override_dh_strip:
override_dh_installdeb:
dh_installdeb
ifeq (false, $(IS_GOLANG_ARCH))
- : # these are empty dependency packages
+ : # these are almost empty dependency packages
rm -f debian/golang-go/DEBIAN/p*
rm -rf debian/golang-go/usr/share/man
install -d -m 755 debian/golang-src/usr/share/go/src
install -d -m 755 debian/golang-src/usr/share/go/include
install -d -m 755 debian/golang-src/usr/share/go/test
+ mkdir -p deb/golang-go/usr/bin/go
+ ln -s go-5 deb/golang-go/usr/bin/go
+ ln -s gofmt-5 deb/golang-go/usr/bin/gofmt-5
endif
override_dh_shlibdeps: