{% set version = '1.0.1' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/ids_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/ids/ids_{{ version }}.tar.gz
  sha256: b6212a186063c23116c5cbd3cca65dbb8977dd737261e4526ebee8f64852cfe8

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip
  noarch: generic

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: knitr, rcorpora, rmarkdown, testthat
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-openssl
    - r-uuid

  run:
    - r-base
    - r-openssl
    - r-uuid

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('ids')"           # [not win]
    - "\"%R%\" -e \"library('ids')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://github.com/richfitz/ids
  license: MIT
  summary: Generate random or human readable and pronounceable identifiers.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Package: ids
# Title: Generate Random Identifiers
# Version: 1.0.1
# Authors@R: person("Rich", "FitzJohn", role = c("aut", "cre"), email = "rich.fitzjohn@gmail.com")
# Description: Generate random or human readable and pronounceable identifiers.
# License: MIT + file LICENSE
# URL: https://github.com/richfitz/ids
# BugReports: https://github.com/richfitz/ids/issues
# Imports: openssl, uuid
# Suggests: knitr, rcorpora, rmarkdown, testthat
# RoxygenNote: 6.0.1
# VignetteBuilder: knitr
# NeedsCompilation: no
# Packaged: 2017-05-31 08:43:42 UTC; rich
# Author: Rich FitzJohn [aut, cre]
# Maintainer: Rich FitzJohn <rich.fitzjohn@gmail.com>
# Repository: CRAN
# Date/Publication: 2017-05-31 08:49:59 UTC

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