{% set version = '0.1' %}

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

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

source:
  fn: xfun_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/xfun_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/xfun/xfun_{{ version }}.tar.gz
  sha256: f226d4b603b04af3d1c5a8bbe9adfe06bae76aaf1ae1d04c3307f1c7eb0ba5ea

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://github.com/yihui/xfun
  license: MIT
  summary: Miscellaneous functions commonly used in other packages maintained by 'Yihui Xie'.
  license_family: MIT

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