{% set name = "BBMap" %}
{% set version = "37.17" %}
{% set sha256 = "e51fc727b14ecd79bd323088903813eb02c70cc213c893d3d28e6a9cbd82b563" %}

about:
  home: 'https://sourceforge.net/projects/bbmap'
  license: "UC-LBL license (see package)"
  summary: "BBMap is a short read aligner, as well as various other bioinformatic tools"

build:
  number: 0

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  fn: {{ name|lower }}-{{ version }}.tar.gz
  sha256: {{ sha256 }}
  url: http://downloads.sourceforge.net/project/{{ name|lower }}/{{ name }}_{{ version }}.tar.gz

requirements:
  build:
    - openjdk >=7.0
  run:
    - openjdk >=7.0

test:
  commands:
    - bbmap.sh -V 2>&1 | grep "Executing" > /dev/null

extra:
  notes: |
    BBMap is a series of Java programs, but they come with a number of custom
    wrapper shell scripts. Each of these is symlinked to the conda bin directory
    during install.
  identifiers:
    - biotools:bbmap
