{% set version = '1.0-0.0' %}

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

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

source:
  fn: perm_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/perm_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/perm/perm_{{ version }}.tar.gz

  sha256: 53c6ee598d5b7b04388915dddc5adf1f8f313b73c3bceb3708db7a632857e500

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

# Suggests: coin
requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=perm
  license: GPL
  summary: Perform Exact or Asymptotic permutation tests
  license_family: GPL

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
