{% set version = "1.5.0.1" %}
package:
  name: poseidon-trident
  version: {{ version }}

source:
  - url: https://github.com/poseidon-framework/poseidon-hs/releases/download/v{{ version }}/trident-conda-linux # [linux]
    md5: 71815ecd30b082610ca738130f04c933 # [linux]
  - url: https://github.com/poseidon-framework/poseidon-hs/releases/download/v{{ version }}/trident-macOS-X64 # [osx]
    md5: c7ce4930a046ee832b37558ed5799c8b # [osx]

build:
  number: 0 
  script:
    - "mkdir -p $PREFIX/bin"
    - "mv trident* $PREFIX/bin/trident"
    - "chmod u+x $PREFIX/bin/trident"
  run_exports:
    - {{ pin_subpackage("poseidon-trident", max_pin=None) }}

requirements:
  build:
    # Precompiled binaries still link against libgcc
    - {{ compiler('c') }}
  host:
    - zlib
    - gmp
  run:
    - zlib
    - gmp

test:
  commands:
     - trident --version

about:
  home: https://www.poseidon-adna.org/#/
  license: MIT
  summary: "A tool (trident) to work with modular genotype databases formatted using Poseidon."
