{% set version="202112.06" %}

package:
  name: sentieon
  version: {{ version }}
source:
  - url: https://s3.amazonaws.com/sentieon-release/software/sentieon-genomics-{{ version }}.tar.gz # [linux64]
    sha256: 18306036f01c3d41dd7ae738b18ae76fd6b666f1172dd4696cd55b4a8465270d # [linux64]
    patches: # [linux64]
      # Fix driver scripts so they resolves location including symlinks
      - sentieon_symlinks.patch # [linux64]
  - url: https://s3.amazonaws.com/sentieon-release/software/mac-sentieon-genomics-{{ version }}.tar.gz # [osx]
    sha256: c1ea262d4e9f522213729bbba10fb8f3351e12166167a97ad5ced0e825bf8f4e # [osx]
    patches: # [osx]
      - sentieon_symlinks.patch # [osx]

build:
  number: 0
  skip: True # [not linux64 and not osx]
  binary_relocation: false

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
  host:
    - zlib
  run:
    - python >=2.7
    - zlib

test:
  commands:
    - LD_LIBRARY_PATH=/usr/local/lib sentieon driver
    - LD_LIBRARY_PATH=/usr/local/lib sentieon driver --help --algo TNscope
    - LD_LIBRARY_PATH=/usr/local/lib sentieon STAR --help # [linux64]
    - LD_LIBRARY_PATH=/usr/local/lib sentieon umi --help
    - LD_LIBRARY_PATH=/usr/local/lib sentieon util --help

about:
  home: https://www.sentieon.com
  license: Commercial (requires license for use; redistribution allowed)
  summary: Accelerated performance bioinformatics tools for mapping and variant calling

extra:
  skip-lints:
      - should_be_noarch_generic # Supports OSX and Linux only
