{% set version="1.9.2.3" %}
{% set sha256="b28633ad2044e3a87173e255563100c223592d8b089789b77ee7011922c1565e" %}
{% set vrnaversion="2.4.13" %}


package:
  name: locarna
  version: {{ version }}

about:
  home: http://www.bioinf.uni-freiburg.de/Software/LocARNA/
  license: GPL
  license_file: COPYING
  summary: Multiple alignment of RNAs

build:
  number: 1

source:
  url: "https://github.com/s-will/LocARNA/releases/download/v{{ version }}/locarna-{{ version }}.tar.gz"
  sha256: {{ sha256 }}

requirements:
  build:
    - make
    - {{ compiler('cxx') }}
  host:
    - viennarna =={{ vrnaversion }}
  run:
    - viennarna =={{ vrnaversion }}
    - perl

test:
  commands:
    - mlocarna --version
    - locarna --version
    - locarna_p --version
    - sparse --version
    - exparna_p --version
    - echo -e ">D10744\nGGAAAAUUGAUCAUCGGCAAGAUAAGUUAUUUACUAAAUAAUAGGAUUUAAUAACCUGGUGAGUUCGAAUCUCACAUUUUCCG" | locarna_rnafold_pp --in-loop --stacking --noLP -p0.5 |head -n3

extra:
  identifiers:
    - biotools:locarna
    - doi:10.1371/journal.pcbi.0030065
