{% set version = "4.0.2" %}

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

source:
  url: https://github.com/3dem/relion/archive/refs/tags/{{ version }}.tar.gz
  sha256: 7ccc941a6a885bd850efa8867ea908254d8dc260cf72cc24c375bb9f1d56bf91

build:
  number: 1
  run_exports:
    - {{ pin_subpackage('relion', max_pin='x') }}

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - cmake
    - make
  host:
    - libtiff
    - fftw
    - openmpi
    - libpng
  run: 
    - libtiff
    - fftw
    - openmpi
    - libpng

test:
  commands:
    - relion_image_handler --help

about:
  home: https://github.com/3dem/relion
  license: GPLv2
  license_file: LICENSE
  license_family: GPL
  summary: Image-processing software for cryo-electron microscopy

extra:
  additional-platforms:
    - linux-aarch64
    - osx-arm64
  recipe-maintainers:
    - multimeric
