{% set version = "1.141" %}
{% set sha256 = "afb497c98f81428904e0b904682cc68be395c4e1f71c36405d680375864c31ab" %}

package:
  name: picard
  version: '{{ version }}'

source:
  url: https://github.com/broadinstitute/picard/releases/download/{{ version }}/picard-tools-{{ version }}.zip
  sha256: '{{ sha256 }}'

build:
  noarch: generic
  number: 6

requirements:
  run:
    - openjdk >=8

test:
  commands:
    - "picard 2>&1 | grep 'USAGE: PicardCommandLine'"

about:
  home: http://broadinstitute.github.io/picard/
  license: MIT
  license_family: MIT
  summary: Java tools for working with NGS data in the BAM format
  description: >- 
    Java tools for working with NGS data in the BAM format.
    This package depends on 'r-base' because Picard requires R to run
    some of its metrics commands. The 'picard-slim' package offers an 
    installation of Picard without the  'r-base' dependency. 
  dev_url: https://github.com/broadinstitute/picard
