{% set version = "5-c2e680a" %}
{% set sha256 = "6377d4cbb91b704599eec96e607bf29931797cb15278384279beef09de3afdb1" %}

package:
  name: spacepharer
  version: {{ version|replace("-", ".")  }}

build:
  number: 6
  run_exports:
    - {{ pin_subpackage('spacepharer', max_pin="x") }}

source:
  url: https://github.com/soedinglab/spacepharer/archive/{{ version }}.tar.gz
  sha256: {{ sha256 }}

requirements:
  build:
    - {{ compiler('cxx') }}
    - {{ compiler('c') }}
    - cmake
    - make
    - llvm-openmp  # [osx]
    - libgomp      # [linux]
  host:
    - perl
    - gawk
    - zlib
    - bzip2
  run:
    - wget
    - gawk
    - zlib
    - bzip2

test:
  commands:
    - spacepharer > /dev/null

about:
  home: https://github.com/soedinglab/spacepharer
  summary: "SpacePHARER: Sensitive identification of phages from CRISPR spacers in prokaryotic hosts"
  license: GPL-3
  license_family: GPL
  license_file: LICENCE.md

extra:
  identifiers:
    - doi:10.1093/bioinformatics/btab222
    - biotools:spacepharer
  recipe-maintainers:
    - milot-mirdita
  additional-platforms:
    - linux-aarch64
    - osx-arm64
