{% set version = '0.3' %}

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

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

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

  sha256: 81eb4c5434d04cb66c749a434c33ceb1c07d92ba79765d4e9233c13a092ec2da

build:
  number: 1
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=RMTstat
  license: BSD_3_clause
  summary: Functions for working with the Tracy-Widom laws and other distributions  related to
    the eigenvalues of large Wishart matrices. The tables for computing the Tracy-Widom
    densities and distribution functions were computed by Momar Dieng's MATLAB package
    "RMLab" (formerly available on his homepage at  http
  license_family: BSD
extra:
   recipe-maintainers:
    - dpryan79
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - Johanneskoester
    - Bgruening
    - Daler
    - Jdblischak
