{% set version = '1.0-3' %}

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

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

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

  sha256: 17e6caeeecd596b850a6caaa257984398de9ec5d2b41ce83c428f112614b9cb0

build:
  number: 0
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=matrixcalc
  license: GPL (>= 2)
  summary: A collection of functions to support matrix calculations for probability, econometric
    and numerical analysis. There are additional functions that are comparable to APL
    functions which are useful for actuarial models such as pension mathematics. This
    package is used for teaching and research purposes at the Department of Finance
    and Risk Engineering, New York University, Polytechnic Institute, Brooklyn, NY 11201.
  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:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - Johanneskoester
    - Bgruening
    - Daler
    - Jdblischak
