{% set name = "infernal" %}
{% set version = "1.1.5" %}

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

source:
  url: http://eddylab.org/infernal/{{ name }}-{{ version }}.tar.gz
  sha256: ad4ddae02f924ca7c85bc8c4a79c9f875af8df96aeb726702fa985cbe752497f

build:
  number: 3
  run_exports:
    - {{ pin_subpackage(name, max_pin="x") }}

requirements:
  build:
    - {{ compiler('c') }}
    - make
    - autoconf
    - automake
    - libtool
  host:
    - perl
    - libgomp  # [linux]
    - llvm-openmp  # [osx]
    - wget
  run:
    - libgomp  # [linux]
    - llvm-openmp  # [osx]

test:
  commands:
    - cmalign -h
    - cmbuild -h
    - cmcalibrate -h
    - cmconvert -h
    - cmemit -h
    - cmfetch -h
    - cmpress -h
    - cmscan -h
    - cmsearch -h
    - cmstat -h

about:
  home: 'http://eddylab.org/infernal'
  license: "BSD-3-Clause"
  license_family: BSD
  license_file: LICENSE
  summary: "Infernal is for searching DNA sequence databases for RNA structure and sequence similarities."
  description: "Infernal (INFERence of RNA ALignment) is for searching DNA sequence databases for RNA structure and sequence similarities."
  doc_url: "http://eddylab.org/infernal/Userguide.pdf"
  dev_url: "https://github.com/EddyRivasLab/infernal"

extra:
  additional-platforms:
    - linux-aarch64
    - osx-arm64
  identifiers:
    - doi:10.1093/bioinformatics/btt509
    - biotools:infernal
