{% set version = '1.0-7' %}

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

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

source:
  fn: phonR_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/phonR_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/phonR/phonR_{{ version }}.tar.gz
  sha256: a680fda8681c4f520f5d66ad8d9e0518537d6f78818749416a752f6bfd62822a

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base
    - r-deldir
    - r-plotrix
    - r-splancs

  run:
    - r-base
    - r-deldir
    - r-plotrix
    - r-splancs

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

about:
  home: http://drammock.github.io/phonR/
  license: GPL-3
  summary: Tools for phoneticians and phonologists, including functions for normalization and
    plotting of vowels.
  license_family: GPL3

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