{% set version = "0.2.2" %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/cffr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/cffr/cffr_{{ version }}.tar.gz
  sha256: b6f9f598ecf12c88b4beb0fc695d3ec1e9aab341a6a44f401aeb130954ec4593

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

# Suggests: knitr, rmarkdown, testthat (>= 3.0.0)
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-crayon >=1.4.1
    - r-desc >=1.3.0
    - r-jsonlite >=1.7.2
    - r-jsonvalidate >=1.1.0
    - r-yaml >=2.2.1

  run:
    - r-base
    - r-crayon >=1.4.1
    - r-desc >=1.3.0
    - r-jsonlite >=1.7.2
    - r-jsonvalidate >=1.1.0
    - r-yaml >=2.2.1

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

about:
  home: https://docs.ropensci.org/cffr/, https://github.com/ropensci/cffr
  license: GPL-3.0-or-later
  summary: The Citation File Format version 1.2.0 <doi:10.5281/zenodo.5171937> is a human and machine readable file format which provides citation metadata for software. This package provides core utilities to generate and validate this metadata.
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

extra:
  recipe-maintainers:
    - conda-forge/r
    - raivivek

# The original CRAN metadata for this package was:

# Package: cffr
# Title: Generate Citation File Format ('cff') Metadata for R Packages
# Version: 0.1.1
# Authors@R: c( person("Diego", "Hernangomez", , "diego.hernangomezherrero@gmail.com", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0001-8457-4658")), person("Joao", "Martins", role = "rev", comment = c(ORCID = "0000-0001-7961-4280")), person("Scott", "Chamberlain", role = "rev", comment = c(ORCID = "0000-0003-1444-9135")) )
# Description: The Citation File Format version 1.2.0 <doi:10.5281/zenodo.5171937> is a human and machine readable file format which provides citation metadata for software. This package provides core utilities to generate and validate this metadata.
# License: GPL (>= 3)
# URL: https://docs.ropensci.org/cffr/, https://github.com/ropensci/cffr
# BugReports: https://github.com/ropensci/cffr/issues
# Depends: R (>= 3.6.0)
# Imports: crayon (>= 1.4.1), desc (>= 1.3.0), jsonlite (>= 1.7.2), jsonvalidate (>= 1.1.0), yaml (>= 2.2.1)
# Suggests: knitr, rmarkdown, testthat (>= 3.0.0)
# VignetteBuilder: knitr
# Config/testthat/edition: 3
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 7.1.2
# X-schema.org-isPartOf: https://ropensci.org
# X-schema.org-keywords: attribution, citation, credit, citation-files, cff, metadata
# NeedsCompilation: no
# Packaged: 2021-11-11 18:07:20 UTC; diego
# Author: Diego Hernangomez [aut, cre, cph] (<https://orcid.org/0000-0001-8457-4658>), Joao Martins [rev] (<https://orcid.org/0000-0001-7961-4280>), Scott Chamberlain [rev] (<https://orcid.org/0000-0003-1444-9135>)
# Maintainer: Diego Hernangomez <diego.hernangomezherrero@gmail.com>
# Repository: CRAN
# Date/Publication: 2021-11-11 18:20:02 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
