{% set name = "ThermoRawFileParser" %}
{% set version = "1.2.2" %}

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

build:
  number: 0
  noarch: generic
  script:
    - mkdir $PREFIX/bin
    - cp * $PREFIX/bin
    - cp $RECIPE_DIR/ThermoRawFileParser.sh $PREFIX/bin
    - chmod +x $PREFIX/bin/ThermoRawFileParser.sh

source:
  # downloading pre-compiled packages, msbuild is a hell to compile unter Linux
  url: https://github.com/compomics/ThermoRawFileParser/releases/download/v{{ version }}/ThermoRawFileParser.zip
  sha256: 33783437843ac693003141c532c6bf651646da7aa24e05f8ed880c7d4c01beed

requirements:
  run:
    - mono >=5

test:
  commands:
    - ThermoRawFileParser.sh 2>&1 | grep metadata

about:
  home: https://github.com/compomics/ThermoRawFileParser
  license: Other
  license_file: LICENSE
  summary: Wrapper around the .net (C#) ThermoFisher ThermoRawFileReader library for running on Linux with mono
  dev_url: https://github.com/compomics/ThermoRawFileParser
  doc_url: https://github.com/compomics/ThermoRawFileParser/blob/master/README.md
