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

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

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

source:
  fn: svGUI_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/svGUI_{{ version }}.tar.gz
    - http://cran.r-project.org/src/contrib/svGUI_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/svGUI/svGUI_{{ version }}.tar.gz
  sha256: 388749ef1b9caf0e25b24a688f88ad5d5089ae6e1dcccf851e763158456073ba

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

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

  run:
    - r-base

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

about:
  home: http://www.sciviews.org/SciViews-R
  license: GPL-2
  summary: Functions to manage GUIs from R
  license_family: GPL2

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
