{% set version = "3.2" %}

package:
  name: crux-toolkit
  version: {{ version }}

about:
  home: http://crux.ms
  summary: A cross-platform suite of analysis tools for interpreting protein mass spectrometry data
  license: Apache-2.0
  license_family: Apache
  dev_url: https://github.com/crux-toolkit/crux-toolkit

source:
  url: https://noble.gs.washington.edu/crux-downloads/crux-{{ version }}/crux-{{ version }}.Linux.x86_64.zip  # [linux64]
  url: https://noble.gs.washington.edu/crux-downloads/crux-{{ version }}/crux-{{ version }}.Darwin.x86_64.zip # [osx]
  sha256: 4365e2ab654290f34d9d25c34b1173c016d7e5c18fb2266b92f09cdd39cbbdfb # [linux64]
  sha256: 6191208e64053292558d85725699bd22b96aca166cac35a2637967492f530cf3 # [osx]

build:
  number: 0
  script: "mkdir -p $PREFIX/bin; chmod a+x bin/*; cp bin/* $PREFIX/bin"

requirements:
  build:
    # both needed as run-time dependencies
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}

test:
  commands:
    - crux version 2> /dev/null | grep -q 'Crux version'
