{% set version = '0.0.12' %}

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

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

source:
  fn: GlobalOptions_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/GlobalOptions_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/GlobalOptions/GlobalOptions_{{ version }}.tar.gz
  sha256: c09da3f9b1646d0f815056cdbeb5fff7dda29f7dd8742d245f5f6dc7066077a9

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://github.com/jokergoo/GlobalOptions
  license: GPL (>= 2)
  summary: It provides more controls on the option values such as validation and filtering on
    the values, making options invisible or private.
  license_family: GPL3

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