{% set version = '1.1.3' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/hms_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/hms/hms_{{ version }}.tar.gz
  sha256: e626f4c60af46efd53ea631b316a103e089470d8fd63c0e0c0efb99364990282

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: crayon, lubridate, pillar (>= 1.1.0), testthat (>= 3.0.0)
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-lifecycle
    - r-pkgconfig
    - r-rlang >=1.0.2
    - r-vctrs >=0.3.8

  run:
    - r-base
    - r-lifecycle
    - r-pkgconfig
    - r-rlang >=1.0.2
    - r-vctrs >=0.3.8

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('hms')"           # [not win]
    - "\"%R%\" -e \"library('hms')\""  # [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://hms.tidyverse.org/, https://github.com/tidyverse/hms
  license: MIT
  summary: Implements an S3 class for storing and formatting time-of-day values, based on the
    'difftime' class.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - mingwandroid

# The original CRAN metadata for this package was:

# Package: hms
# Title: Pretty Time of Day
# Date: 2023-03-21
# Version: 1.1.3
# Authors@R: c( person("Kirill", "Muller", role = c("aut", "cre"), email = "kirill@cynkra.com", comment = c(ORCID = "0000-0002-1416-3412")), person("R Consortium", role = "fnd"), person("RStudio", role = "fnd") )
# Description: Implements an S3 class for storing and formatting time-of-day values, based on the 'difftime' class.
# Imports: lifecycle, methods, pkgconfig, rlang (>= 1.0.2), vctrs (>= 0.3.8)
# Suggests: crayon, lubridate, pillar (>= 1.1.0), testthat (>= 3.0.0)
# License: MIT + file LICENSE
# Encoding: UTF-8
# URL: https://hms.tidyverse.org/, https://github.com/tidyverse/hms
# BugReports: https://github.com/tidyverse/hms/issues
# RoxygenNote: 7.2.3
# Config/testthat/edition: 3
# Config/autostyle/scope: line_breaks
# Config/autostyle/strict: false
# Config/Needs/website: tidyverse/tidytemplate
# NeedsCompilation: no
# Packaged: 2023-03-21 16:52:11 UTC; kirill
# Author: Kirill Muller [aut, cre] (<https://orcid.org/0000-0002-1416-3412>), R Consortium [fnd], RStudio [fnd]
# Maintainer: Kirill Muller <kirill@cynkra.com>
# Repository: CRAN
# Date/Publication: 2023-03-21 18:10:02 UTC

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