{% set version = '1.1-8' %}

{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-locfdr
  version: {{ version|replace("-", "_") }}

source:
  fn: locfdr_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/locfdr_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/locfdr/locfdr_{{ version }}.tar.gz
  sha256: 42d6e12593ae6d541e6813a140b92591dabeb1df94432a515507fc2eee9a54b9

build:
  number: 0
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base

  run:
    - r-base

test:
  commands:
    - $R -e "library('locfdr')"  # [not win]
    - "\"%R%\" -e \"library('locfdr')\""  # [win]

about:
  home: https://CRAN.R-project.org/package=locfdr
  license: GPL-2
  summary: Computation of local false discovery rates.
  license_family: GPL2

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
