github.com/mysteriumnetwork/go-ethereum@v1.11.0/build/deb/ethereum/deb.rules (about)

     1  #!/usr/bin/make -f
     2  # -*- makefile -*-
     3  
     4  # Uncomment this to turn on verbose mode.
     5  #export DH_VERBOSE=1
     6  
     7  # Launchpad rejects Go's access to $HOME, use custom folders
     8  export GOCACHE=/tmp/go-build
     9  export GOPATH=/tmp/gopath
    10  export GOROOT_BOOTSTRAP={{.GoBootPath}}
    11  
    12  override_dh_auto_clean:
    13  	# Don't try to be smart Launchpad, we know our build rules better than you
    14  
    15  override_dh_auto_build:
    16  	# We can't download a fresh Go within Launchpad, so we're shipping and building
    17  	# one on the fly. However, we can't build it inside the go-ethereum folder as
    18  	# bootstrapping clashes with go modules, so build in a sibling folder.
    19  	(mv .go ../ && cd ../.go/src && ./make.bash)
    20  
    21  	# We can't download external go modules within Launchpad, so we're shipping the
    22  	# entire dependency source cache with go-ethereum.
    23  	mkdir -p $(GOPATH)/pkg
    24  	mv .mod $(GOPATH)/pkg/mod
    25  
    26  	# A fresh Go was built, all dependency downloads faked, hope build works now
    27  	../.go/bin/go run build/ci.go install -git-commit={{.Env.Commit}} -git-branch={{.Env.Branch}} -git-tag={{.Env.Tag}} -buildnum={{.Env.Buildnum}} -pull-request={{.Env.IsPullRequest}}
    28  
    29  override_dh_auto_test:
    30  
    31  %:
    32  	dh $@