{% set version = '0.1-2' %}

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

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

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

  sha256: 77b6dc4651b33b03aaaf1e09a35f9c3536e5fddac2eda34f5a34e0ae33cf2e0d

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://cran.r-project.org/web/packages/alluvial/index.html
  license: MIT
  summary: Creating alluvial diagrams (also known as parallel sets plots) for multivariate and
    time series-like data.
  license_family: MIT
extra:
   recipe-maintainers:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
