{% set name = "llvm-spirv" %}
{% set version = "14.0.0" %}
{% set llvm_version = ".".join(version.split(".")[:2]) %}
{% set buildnumber = 0 %}

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

source:
    url: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/v{{ version.replace("_", "-") }}.tar.gz
    sha256: 1afc52bb4e39aeb9b5b69324a201c81bd986364f347b559995eff6fd6f013318

build:
  number: {{ buildnumber }}

requirements:
  build:
    - {{ compiler('cxx') }}
    - cmake
    - make
    - pkg-config
    - ninja # [win]
  host:
    - llvmdev  {{ version }}
    - llvm  {{ version }}
    - zlib
  run_constrained:
    - llvmdev  {{ version }}

test:
  commands:
    - llvm-spirv --help

about:
  home: https://github.com/KhronosGroup/SPIRV-LLVM-Translator
  license: NCSA
  license_file: LICENSE.TXT
  license_family: BSD
  summary: 'A tool and a library for bi-directional translation between SPIR-V and LLVM IR'
  description: |
    <strong>LEGAL NOTICE: Use of this software package is subject to the
    software license agreement (as set forth above, in the license section of
    the installed Conda package and/or the README file) and all notices,
    disclaimers or license terms for third party or open source software
    included in or with the software.</strong> 
    <br/><br/>
    EULA: <a href="https://opensource.org/licenses/NCSA" target="_blank">NCSA</a>
    <br/><br/>
