{% set version = '1.8.5' %}

{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-readbrukerflexdata
  version: {{ version|replace("-", "_") }}

source:
  fn: readBrukerFlexData_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/readBrukerFlexData_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/readBrukerFlexData/readBrukerFlexData_{{ version }}.tar.gz
  sha256: 35a1e2be4ce6bf57291eda5d3e220bb2d0e44404625a9b71d1a719c8bbabb1e2

build:
  merge_build_host: True  # [win]
  number: 1
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{posix}}zip               # [win]
  host:
    - r-base
  run:
    - r-base

test:
  commands:
    - $R -e "library('readBrukerFlexData')"           # [not win]
    - "\"%R%\" -e \"library('readBrukerFlexData')\""  # [win]

about:
  home: http://strimmerlab.org/software/maldiquant/ https://github.com/sgibb/readBrukerFlexData/
  license: GPL (>= 3)
  summary: Reads data files acquired by Bruker Daltonics' matrix-assisted laser desorption/ionization-time-of-flight
    mass spectrometer of the *flex series.
  license_family: GPL3

extra:
   recipe-maintainers:
    - dpryan79
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
