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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/FMStable_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/FMStable/FMStable_{{ version }}.tar.gz
  sha256: 93392247fa7841698252386324a6927a0a87f96291b3443d240c2f87ef8b7103

build:
  merge_build_host: True  # [win]
  number: 1
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]

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

about:
  home: https://CRAN.R-project.org/package=FMStable
  license: GPL-3.0-only
  summary: This package implements some basic procedures for dealing with log maximally skew
    stable distributions, which are also called finite moment log stable distributions.
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

extra:
  recipe-maintainers:
    - conda-forge/r

# Package: FMStable
# Version: 0.1-2
# Date: 2012-08-30
# Title: Finite Moment Stable Distributions
# Author: Geoff Robinson
# Maintainer: Geoff Robinson <Geoff.Robinson@CSIRO.au>
# Description: This package implements some basic procedures for dealing with log maximally skew stable distributions, which are also called finite moment log stable distributions.
# License: GPL-3
# Packaged: 2012-09-06 06:06:05 UTC; rob400
# Repository: CRAN
# Date/Publication: 2012-09-06 06:40:04
