{% set version = '0.16' %}

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

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

source:
  fn: mlgt_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/mlgt_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/mlgt/mlgt_{{ version }}.tar.gz

  sha256: a93d6a2aafec41946773484a1bc5087cd56b967e4f8de3e68c69e4b7abc16ddb

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

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-seqinr

  run:
    - r-base
    - r-seqinr

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

about:
  home: https://cran.r-project.org/web/packages/mlgt/index.html
  license: GPL (>= 2)
  summary: Processing and analysis of high throughput (Roche 454) sequences generated from multiple
    loci and multiple biological samples. Sequences are assigned to their locus and
    sample of origin, aligned and trimmed. Where possible, genotypes are called and
    variants mapped to known alleles.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}\/lib\/R\/share\/licenses\/GPL-3'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'  # [win]
extra:
   recipe-maintainers:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
