{% set version = '1.1-1' %}

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

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

source:
  fn: sciplot_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/sciplot_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/sciplot/sciplot_{{ version }}.tar.gz
  sha256: c31b59d9cb16c8af5f054e51bd8cd37599886dc4cfc4a14f1f1f9d0367eabcf9

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=sciplot
  license: GPL (>= 2)
  summary: A collection of functions that creates graphs with error bars for data collected from
    one-way or higher factorial designs.
  license_family: GPL
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'   # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'   # [win]

extra:
  recipe-maintainers:
    - sebastian-luna-valero
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
