{% 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]
  number: 3
  noarch: generic
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-openssl
    - r-uuid
  run:
    - r-base
    - r-openssl
    - r-uuid

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

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:
    - conda-forge/r
    - brendanf

# 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
