{% set version = '1.0' %}

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

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

source:
  fn: extrafontdb_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/extrafontdb_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/extrafontdb/extrafontdb_{{ version }}.tar.gz
  sha256: faa1bafee5d4fbc24d03ed237f29f1179964ebac6e3a46ac25b0eceda020b684

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://github.com/wch/extrafontdb
  license: GPL-2
  summary: Package for holding the database for the extrafont package
  license_family: GPL2

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
