{% set version="2.0.0" %}
{% set sha256="3be0d2cac7f7451f8b741983e22803b546de2074d837b425fb1b69ccc718ebbc" %}
{% set vrnaversion="2.5.1" %}

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

about:
  home: https://s-will.github.io/LocARNA
  license: GPL
  license_file: COPYING
  summary: Multiple alignment of RNAs

build:
  number: 0

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


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
