{% set name = "FragGeneScan" %}
{% set version = "1.32" %}
{% set sha256 = "54db8dab643f791aae7b05c310fe0d88ecb07db306211185c4c8524734f334c4" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: http://downloads.sourceforge.net/project/fraggenescan/{{ name }}{{ version }}.tar.gz
  sha256: {{ sha256 }}

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

requirements:
  build:
    - make
    - {{ compiler('c') }}
  run:
    - perl

test:
  commands:
    - "FragGeneScan &> /dev/null || [[ \"$?\" == 1 ]]"
    - "run_FragGeneScan.pl &> /dev/null || [[ \"$?\" == 1 ]]"

about:
  home: "https://sourceforge.net/projects/fraggenescan/"
  license: "BSD"
  summary: "FragGeneScan is an application for finding (fragmented) genes in short reads."
  description: |
    FragGeneScan is an application for finding (fragmented) genes in short
    reads. It can also be applied to predict prokaryotic genes in incomplete
    assemblies or complete genomes.

extra:
  additional-platforms:
    - linux-aarch64
  recipe-maintainers:
    - keuv-grvl
  identifiers:
    - doi:10.1093/nar/gkq747
    - biotools:fraggenescan
