{% set version = '0.3' %}

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

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

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

  sha256: 9cd9313954f6ecd82480d373f6c5371ca84ab33e3f5c39d972d35cfcf1096846

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=ADGofTest
  license: GPL
  summary: |
    Anderson-Darling GoF test with p-value calculation based on Marsaglia's 2004 paper
    "Evaluating the Anderson-Darling Distribution"
  license_family: GPL

extra:
  recipe-maintainers:
    - dpryan79
    - johanneskoester
    - bgruening
