github.com/bigzoro/my_simplechain@v0.0.0-20240315012955-8ad0a2a29bb9/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 GOROOT_BOOTSTRAP={{.GoBootPath}}
    10  
    11  override_dh_auto_clean:
    12  	# Don't try to be smart Launchpad, we know our build rules better than you
    13  
    14  override_dh_auto_build:
    15  	# We can't download a fresh Go within Launchpad, so we're shipping and building
    16  	# one on the fly. However, we can't build it inside the go-simplechain folder as
    17  	# bootstrapping clashes with go modules, so build in a sibling folder.
    18  	(mv .go ../ && cd ../.go/src && ./make.bash)
    19  
    20  	# We can't download external go modules within Launchpad, so we're shipping the
    21  	# entire dependency source cache with go-simplechain.
    22  	(mkdir -p build/_workspace/pkg/mod && mv .mod/* build/_workspace/pkg/mod)
    23  
    24  	# A fresh Go was built, all dependency downloads faked, hope build works now
    25  	build/env.sh ../.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}}
    26  
    27  override_dh_auto_test:
    28  
    29  %:
    30  	dh $@