{% set version = '0.1.1' %}

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

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

source:
  fn: miniUI_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/miniUI_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/miniUI/miniUI_{{ version }}.tar.gz
  sha256: 9c92032071ee75ee9c26c4cfd3115877fbcb15de2fd2023109c670784b51cce1

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

requirements:
  build:
    - r-base
    - r-htmltools >=0.3
    - r-shiny >=0.13

  run:
    - r-base
    - r-htmltools >=0.3
    - r-shiny >=0.13

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

about:
  home: https://CRAN.R-project.org/package=miniUI
  license: GPL-3
  summary: Provides UI widget and layout functions for writing Shiny apps that work well on small
    screens.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
