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

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

source:
  fn: filesstrings_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/filesstrings_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/filesstrings/filesstrings_{{ version }}.tar.gz
  sha256: 1ca1709419d5be41b89ce2fdfef8dca1c9a27b67e962b14c0c508414a6d55d11

build:
  merge_build_host: True  # [win]
  number: 1000
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}        # [not win]
    - {{ compiler('cxx') }}      # [not win]
    - {{native}}toolchain        # [win]
    - {{posix}}filesystem        # [win]
    - {{posix}}make
    - {{posix}}sed               # [win]
    - {{posix}}coreutils         # [win]
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-rcpp
    - r-checkmate
    - r-magrittr
    - r-matrixstats
    - r-ore
    - r-purrr
    - r-rlang
    - r-stringr
    - r-tibble
  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-rcpp
    - r-checkmate
    - r-magrittr
    - r-matrixstats
    - r-ore
    - r-purrr
    - r-rlang
    - r-stringr
    - r-tibble

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

about:
  home: https://www.github.com/rorynolan/filesstrings
  license: GPL-3
  summary: Convenient functions for moving files, deleting directories,  and a variety of string
    operations that facilitate manipulating files  and extracting information from strings.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

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