github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/snap/snapcraft.yaml (about)

     1  name: juju
     2  version: 2.6-beta1
     3  summary: juju client
     4  description: Through the use of charms, juju provides you with shareable, re-usable, and repeatable expressions of devops best practices.
     5  confinement: classic
     6  grade: devel
     7  
     8  apps:
     9    juju:
    10      command: wrappers/juju
    11  
    12  parts:
    13    wrappers:
    14      plugin: dump
    15      source: snap/
    16    juju:
    17      plugin: dep
    18      go-importpath: github.com/juju/juju
    19      # The source can be your local tree or github
    20      # source: https://github.com/juju/juju.git
    21      # If you pull a remote, set source-depth to 1 to make the fetch shorter
    22      # source-depth: 1
    23      # source: file:///full/file/path
    24      # By default, reuse existing tree
    25      source: .
    26      source-type: git
    27      # this is for building in a docker container
    28      build-packages: [gcc, libc6-dev]
    29      build-attributes: [no-patchelf]
    30      # You can grab a specific tag, commit, or branch
    31      # source-tag: juju-2.0.2
    32      # source-commit: a83896d913d7e43c960e441c1e41612116d92d46
    33      # source-branch: develop
    34      # apply patches before building
    35      go-packages:
    36        - github.com/juju/juju/cmd/juju
    37        # If you are releasing a build with public streams, you don't need to build the agent
    38        # Instead, you should use the released agent
    39        - github.com/juju/juju/cmd/jujud
    40        - github.com/juju/juju/cmd/plugins/juju-metadata
    41      override-build: |
    42        cat patches/*.diff patches/*.patch | patch -f -u -p1 -r- -d ../go/src/github.com/juju/juju/vendor
    43        snapcraftctl build
    44  
    45        mkdir -p $SNAPCRAFT_PART_INSTALL/bash_completions
    46        cp -a etc/bash_completion.d/juju* $SNAPCRAFT_PART_INSTALL/bash_completions/.
    47        # If you are releasing a build with public streams, copy in the agent directly
    48        # If needed, grab the agent from streams
    49        # curl http://streams.canonical.com/juju/tools/agent/$SNAPCRAFT_PROJECT_VERSION/juju-$SNAPCRAFT_PROJECT_VERSION-ubuntu-amd64.tgz | tar xz -C $SNAPCRAFT_PART_INSTALL/bin/
    50        jujud=$SNAPCRAFT_PART_INSTALL/bin/jujud
    51        version=$(jujud version)
    52        hash=$(sha256sum $jujud | cut -d " " -f 1)
    53        cat > jujud-versions.yaml <<EOF
    54        versions:
    55          - version: $version
    56            sha256: $hash
    57        EOF
    58        cp -a jujud-versions.yaml $SNAPCRAFT_PART_INSTALL/bin