{% set name = "k8" %}
{% set version = "1.2" %}

package:
  name: {{ name }}
  version: {{ version }}

source:
  url: https://github.com/attractivechaos/k8/archive/refs/tags/v{{ version }}.tar.gz
  sha256: 4157aa86066eb0a7874de194893c4544ac772d009cc1148377c9c346f9fc6d07

build:
  number: 6
  run_exports:
    - {{ pin_subpackage('k8', max_pin="x") }}

requirements:
  build:
    - {{ compiler('cxx') }}
    - make
    - clangdev  # [osx]
    - sysroot_linux-64 >=2.17  # [linux and x86_64]
    - python >=3.8
    - wget
    - tar
    - sed
    - setuptools
  host:
    - zlib
    - sysroot_linux-64 >=2.17  # [linux and x86_64]
  run:
    - sysroot_linux-64 >=2.17  # [linux and x86_64]

test:
  commands:
    - k8 -v | grep '^k8'

about:
  home: "https://github.com/attractivechaos/k8"
  license: MIT
  license_family: MIT
  license_file: "LICENSE.txt"
  summary: "Lightweight JavaScript shell based on Google's V8 JavaScript engine."
  dev_url: "https://github.com/attractivechaos/k8"
  doc_url: "https://github.com/attractivechaos/k8/blob/v{{ version }}/README.md"

extra:
  additional-platforms:
    - linux-aarch64
    - osx-arm64
