{% set version = '3012.100' %}

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

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

source:
  fn: timeDate_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/timeDate_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/timeDate/timeDate_{{ version }}.tar.gz


  sha256: 6262ef7ca9f5eeb9db8229d6bb7a51d46d467a4fa73e2ccc5b4b78e18780c432

build:
  number: 0

  rpaths:
    - lib/R/lib/
    - lib/
  skip: True  # [win32]

requirements:
  build:
    - r-base

  run:
    - r-base

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



about:
  home: https://www.rmetrics.org
  license: GPL (>= 2)
  summary: Environment for teaching  "Financial Engineering and Computational Finance". Managing
    chronological and calendar objects.
  license_family: GPL3



extra:
  recipe-maintainers:
    - croth1
