{% set version = '0.3-2' %}

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

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

source:
  fn: speedglm_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/speedglm_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/speedglm/speedglm_{{ version }}.tar.gz
  sha256: 5fcaf18324dc754152f528a44894944063303f780d33e58569ea7c306bfc45ac

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base
    - r-mass
    - r-matrix

  run:
    - r-base
    - r-mass
    - r-matrix

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

about:
  home: https://CRAN.R-project.org/package=speedglm
  license: GPL
  summary: Fitting linear models and generalized linear models to large data sets by updating
    algorithms.
  license_family: GPL

extra:
  recipe-maintainers:
    - dpryan79
    - johanneskoester
    - bgruening
    - daler
