{% set version = '0.1-1' %}

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

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

source:
  fn: pack_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/pack_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/pack/pack_{{ version }}.tar.gz
  sha256: 278fe6ebf8e0cab0bcedc93dc5b17d5642dec128361e7f8c173a91cb29439774

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

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

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=pack
  license: GPL-3
  summary: Functions to easily convert data to binary formats other programs/machines can understand.
  license_family: GPL3

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