{% set goname = "github.com/hashicorp/packer" %}
{% set version = "0.12.18" %}

{% set name = goname.split('/')[-1] %}
{% set pkg_src = ('src/'+goname).replace("/",os.sep) %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  # We must use git here beause the program looks
  # for the git sha&tag to determine its version
  - folder: {{ pkg_src }}
    url: https://{{ goname }}/archive/v{{ version }}.tar.gz
    sha256: 1253a870ba2c1d9a873f6bfcaa2e4450573fd06177705f0faeb451157e1dde8b

build:
  number: 0
  script:
    - pushd {{ pkg_src }}
    - go install -v .

requirements:
  build:
    - {{ compiler('go') }}
    - {{ compiler('c') }}              # [unix]
    - {{ compiler('m2w64_c') }}        # [win]

test:
  requires:
    - m2-bash  # [win]
  commands:
    - bash -c "{{ name|lower }} -v"  # [unix]

about:
  home: https://www.packer.io
  license: MPL 2.0
  summary: Terraform is a tool for building, changing, and combining infrastructure safely and efficiently. 
  description: |
    Terraform is a tool for building, changing, and versioning infrastructure safely and 
    efficiently. Terraform can manage existing and popular service providers as well as custom in-house 
    solutions.
  doc_url: https://www.terraform.io/docs/index.html
  dev_url: https://github.com/hashicorp/terraform.git

extra:
  recipe-maintainers:
    - sodre
    - mariusvniekerk

Add test to see if we can just build packer manually
Add test to see if we can just build packer manually