{% set version = '0.1' %}

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

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

source:
  fn: ggseqlogo_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/ggseqlogo_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/ggseqlogo/ggseqlogo_{{ version }}.tar.gz
  sha256: c14f145a982597f32264b37a5f2645206a0bee30dd2584a25cb8e3dc2f9b068f

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

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

requirements:
  build:
    - r-base
    - r-ggplot2

  run:
    - r-base
    - r-ggplot2

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

about:
  home: https://github.com/omarwagih/ggseqlogo
  license: LGPL
  summary: The extensive range of functions provided by this package makes it possible to draw
    highly versatile sequence logos. Features include, but not limited to, modifying
    colour schemes and fonts used to draw the logo, generating multiple logo plots,
    and aiding the visualisation with annotations. Sequence logos can easily be combined
    with other plots 'ggplot2' plots.
  license_family: LGPL

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