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

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

source:
  fn: additivityTests_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/additivityTests_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/additivityTests/additivityTests_{{ version }}.tar.gz
  sha256: 5c07556fc8410aada729c586ae115c7436ad0ca84359e86df0b249cc41d20d11

build:
  merge_build_host: True  # [win]
  number: 0
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
  host:
    - r-base
  run:
    - r-base

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

about:
  home: https://github.com/simecek/additivityTests
  license: GPL-3
  summary: Implementation of the Tukey, Mandel, Johnson-Graybill, LBI, Tusell and modified Tukey
    non-additivity tests.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'  # [win]

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
    - cbrueffer
