{% set version = '0.9-70' %}

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

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

source:
  fn: svMisc_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/svMisc_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/svMisc/svMisc_{{ version }}.tar.gz
  sha256: 3c50abca6787ac2821b49ad46afedb7d0c2329f86ad59944628b2e587ef5f9f6

build:
  number: 0
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
  run:
    - r-base

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

about:
  home: http://www.sciviews.org/SciViews-R
  license: GPL-2
  summary: Supporting functions for the GUI API (various utility functions)
  license_family: GPL2
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-2'  # [win]

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