{% set version = '0.61' %}

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

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

source:
  fn: shinyBS_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/shinyBS_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/shinyBS/shinyBS_{{ version }}.tar.gz
  sha256: 51be29541e066d30c66e243393f20b0da705eba1b7ce7eeadea993bb2aa91166

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

requirements:
  build:
    - r-base
    - r-htmltools
    - r-shiny >=0.11
  run:
    - r-base
    - r-htmltools
    - r-shiny >=0.11

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

about:
  home: https://ebailey78.github.io/shinyBS
  license: GPL-3
  summary: Adds additional Twitter Bootstrap components to Shiny.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
