{% set version = '2.1' %}

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

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

source:
  fn: gsalib_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/gsalib_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/gsalib/gsalib_{{ version }}.tar.gz
  sha256: e1b23b986c18b89a94c58d9db45e552d1bce484300461803740dacdf7c937fcc

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

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

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=gsalib
  license: MIT
  summary: This package contains utility functions used by the Genome Analysis Toolkit (GATK)
    to load tables and plot data. The GATK is a toolkit for variant discovery in high-throughput
    sequencing data.
  license_family: MIT

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