{% set version = '3.7-4' %}

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

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

source:
  fn: RSEIS_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/RSEIS_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/RSEIS/RSEIS_{{ version }}.tar.gz
  sha256: fd5e7769cf9fde240c9fcbb22b8453e0277d7cf4572005ce671bb274f0a3e17b

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

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-rpmg
    - r-rwave
    - posix                # [win]
    - {{native}}toolchain  # [win]
    - gcc                  # [not win]

  run:
    - r-base
    - r-rpmg
    - r-rwave
    - libgcc  # [not win]

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

about:
  home: https://CRAN.R-project.org/package=RSEIS
  license: GPL (>= 2)
  summary: Multiple interactive codes to view and analyze seismic data, via spectrum analysis,
    wavelet transforms, particle motion, hodograms.  Includes general time-series tools,
    plotting, filtering, interactive display.
  license_family: GPL3

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