github.com/theQRL/go-zond@v0.1.1/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  	#
    20  	# We're also shipping the bootstrapper as of Go 1.20 as it had minimum version
    21  	# requirements opposed to older versions of Go.
    22  	(mv .goboot ../ && cd ../.goboot/src && ./make.bash)
    23  	(mv .go ../ && cd ../.go/src && GOROOT_BOOTSTRAP=`pwd`/../../.goboot ./make.bash)
    24  
    25  	# We can't download external go modules within Launchpad, so we're shipping the
    26  	# entire dependency source cache with go-ethereum.
    27  	mkdir -p $(GOPATH)/pkg
    28  	mv .mod $(GOPATH)/pkg/mod
    29  
    30  	# A fresh Go was built, all dependency downloads faked, hope build works now
    31  	../.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}} -ubuntu {{.Distro}}
    32  
    33  override_dh_auto_test:
    34  
    35  %:
    36  	dh $@