{% set version = '1.3-20' %}

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

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

source:
  fn: boot_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/boot_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/boot/boot_{{ version }}.tar.gz
  sha256: adcb90b72409705e3f9c69ea6c15673dcb649b464fed06723fe0930beac5212a

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=boot
  license: Unlimited
  summary: 'Functions and datasets for bootstrapping from the book "Bootstrap Methods and Their
    Application" by A. C. Davison and  D. V. Hinkley (1997, CUP), originally written
    by Angelo Canty for S.'
  license_family: MIT

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