{% set version = '1.0.0' %}

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

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

source:
  fn: praise_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/praise_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/praise/praise_{{ version }}.tar.gz


  sha256: 5c035e74fd05dfa59b03afe0d5f4c53fbf34144e175e90c53d09c6baedf5debd

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


  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base

  run:
    - r-base

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



about:
  home: https://github.com/gaborcsardi/praise
  license: MIT
  summary: Build friendly R packages that praise their users if they have done something good,
    or they just need it to feel better.
  license_family: MIT
  license_file: LICENSE



extra:
  recipe-maintainers:
    - croth1
