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

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

source:
  fn: arrayhelpers_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/arrayhelpers_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/arrayhelpers/arrayhelpers_{{ version }}.tar.gz
  sha256: 345ccb1e577aeef241c5602a6a922d8e6cd05358112d4db204fe75f32e0c69c5

build:
  merge_build_host: True  # [win]
  number: 1
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-svunit
  run:
    - r-base
    - r-svunit

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

about:
  home: http://arrayhelpers.r-forge.r-project.org/
  license: GPL2
  summary: Some convenient functions to work with arrays.
  license_family: GPL2
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-2'  # [win]

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