{% set version = '0.1' %}

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

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

source:
  fn: etrunct_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/etrunct_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/etrunct/etrunct_{{ version }}.tar.gz
  sha256: 19b36c739e382be2f19bdbe4107337935d52a1ab8eb301326612318afdfbca2b

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=etrunct
  license: MIT
  summary: Computes moments of univariate truncated t distribution. There is only one exported
    function, e_trunct(), which should be seen for details.
  license_family: MIT

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