{% set version = '0.3.2' %}

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

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

source:
  fn: wesanderson_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/wesanderson_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/wesanderson/wesanderson_{{ version }}.tar.gz
  sha256: 2d6b36ba4692d98c0c9ced991e8db9b1b62a82a729da83103e5c8bd87c724c9d

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://github.com/karthik/wesanderson
  license: MIT
  summary: Palettes generated mostly from Wes Anderson movies
  license_family: MIT

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