{% set version = '0.1-1' %}

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

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

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

  sha256: 22755c93c76c26252841f43195df31681ea865e91aa89726010bd1b9288ef48f

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://github.com/krlmlr/plogr#readme
  license: MIT
  license_family: MIT
  license_file: LICENSE
  summary: ' A simple header-only logging library for C++. Add ''LinkingTo: plogr'' to ''DESCRIPTION'',
    and ''#include <plogr.h>'' in your C++ modules to use it.'

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
