{% set version = "2-e56c505" %}
{% set sha256 = "303e3760d73f7d942127e86dbeccef6555d7cff49f39737e55d2f6d56b0e768d" %}

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

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

source:
  url: https://github.com/soedinglab/spacedust/archive/{{ version }}.tar.gz
  sha256: {{ sha256 }}
  patches:
    - 3e436173321a2d0365a08bfb3b281108ed9ad414.patch

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - cmake
    - make
    - llvm-openmp         # [osx]
    - libgomp             # [linux]
  host:
    - zlib
    - bzip2
  run:
    - aria2
    - gawk
    - zlib
    - bzip2
    - foldseek >=10.941cd33

test:
  commands:
    - spacedust > /dev/null

about:
  home: https://github.com/soedinglab/spacedust
  summary: "De novo discovery of conserved gene clusters in microbial genomes with Spacedust"
  license: GPL-3
  license_family: GPL
  license_file: LICENCE.md

extra:
  identifiers:
    - doi:10.1101/2024.10.02.616292v1
    - biotools:spacedust
  recipe-maintainers:
    - milot-mirdita
  additional-platforms:
    - linux-aarch64
    - osx-arm64
