{% set version = '3042.89' %}

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

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

source:
  fn: fBasics_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/fBasics_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/fBasics/fBasics_{{ version }}.tar.gz
  sha256: b8b8d2362cbcfae3282b35fb59258cc956e2e60a5d19e3c7cee06b51b434da74

build:
  number: 0
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-mass
    - r-gss
    - r-spatial
    - r-stabledist
    - r-timedate
    - r-timeseries
    - posix                # [win]
    - {{native}}toolchain  # [win]
    - gcc                  # [not win]

  run:
    - r-base
    - r-mass
    - r-gss
    - r-spatial
    - r-stabledist
    - r-timedate
    - r-timeseries
    - libgcc  # [not win]

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

about:
  home: https://www.rmetrics.org
  license: GPL (>= 2)
  summary: Provides a collection of functions to  explore and to investigate basic properties
    of financial returns  and related quantities. The covered fields include techniques
    of explorative data analysis and the investigation of distributional properties,
    including parameter estimation and hypothesis testing. Even more there are several
    utility functions for data handling and management.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'  # [win]

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
    - cbrueffer
