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

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

source:
  fn: shinydashboardPlus_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/shinydashboardPlus_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/shinydashboardPlus/shinydashboardPlus_{{ version }}.tar.gz
  sha256: 1e44ad963ecbcebdae5ab7e0efbe3b9d6630dbe6bec55548fbdd7a039b8cce07

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

requirements:
  build:
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-htmltools
    - r-shiny
    - r-shinydashboard
  run:
    - r-base
    - r-htmltools
    - r-shiny
    - r-shinydashboard

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

about:
  home: https://github.com/DivadNojnarg/shinydashboardPlus, http://130.60.24.205/shinydashboardPlus/#
  license: GPL-2
  summary: 'Extend ''shinydashboard'' with ''AdminLTE2'' components.  ''AdminLTE2'' is a free
    ''Bootstrap 3'' dashboard template available at <https://adminlte.io>. Customize
    boxes, add timelines and a lot more. '
  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:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
    - cbrueffer
    - dbast
