{% set version = '3.4-5' %}

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

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

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

  sha256: 162a347495fd52cbb62e8187a4692e7c50b9fa62123c5ef98f2744c98a05fb9f

build:
  merge_build_host: True  # [win]
  number: 2
  skip: true  # [win32]

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

requirements:
  build:
    - posix                # [win]
    - {{ compiler('c') }}        # [unix]
    - {{ compiler('m2w64_c') }}  # [win]
  host:
    - r-base
    - r-ade4
    - r-segmented

  run:
    - r-base
    - r-ade4
    - r-segmented

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

about:
  home: https://cran.r-project.org/web/packages/seqinr/index.html
  license: GPL (>= 2)
  summary: Exploratory data analysis and data visualization for biological sequence (DNA and
    protein) data. Seqinr includes  utilities for sequence data management under the
    ACNUC system described in Gouy, M. et al. (1984) Nucleic Acids Res. 12
  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:
    - dpryan79
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
