{% set version = '0.8.0' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/clipr_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/clipr/clipr_{{ version }}.tar.gz
  sha256: 32c2931992fbec9c31b71de3e27059f1cbb45b4b1f45fd42e0e8dbcec6de3be9

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip
  noarch: generic

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: covr, knitr, rmarkdown, rstudioapi (>= 0.5), testthat (>= 2.0.0)
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base

  run:
    - r-base

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('clipr')"           # [not win]
    - "\"%R%\" -e \"library('clipr')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://github.com/mdlincoln/clipr, http://matthewlincoln.net/clipr/
  license: GPL-3
  summary: Simple utility functions to read from and write to the Windows, OS X, and X11 clipboards.
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

extra:
  recipe-maintainers:
    - mingwandroid

# The original CRAN metadata for this package was:

# Type: Package
# Package: clipr
# Title: Read and Write from the System Clipboard
# Version: 0.8.0
# Authors@R: c( person("Matthew", "Lincoln", , "matthew.d.lincoln@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-4387-3384")), person("Louis", "Maddox", role = "ctb"), person("Steve", "Simpson", role = "ctb"), person("Jennifer", "Bryan", role = "ctb") )
# Description: Simple utility functions to read from and write to the Windows, OS X, and X11 clipboards.
# License: GPL-3
# URL: https://github.com/mdlincoln/clipr, http://matthewlincoln.net/clipr/
# BugReports: https://github.com/mdlincoln/clipr/issues
# Imports: utils
# Suggests: covr, knitr, rmarkdown, rstudioapi (>= 0.5), testthat (>= 2.0.0)
# VignetteBuilder: knitr
# Encoding: UTF-8
# Language: en-US
# RoxygenNote: 7.1.2
# SystemRequirements: xclip (https://github.com/astrand/xclip) or xsel (http://www.vergenet.net/~conrad/software/xsel/) for accessing the X11 clipboard, or wl-clipboard (https://github.com/bugaevc/wl-clipboard) for systems using Wayland.
# NeedsCompilation: no
# Packaged: 2022-02-19 02:20:21 UTC; mlincoln
# Author: Matthew Lincoln [aut, cre] (<https://orcid.org/0000-0002-4387-3384>), Louis Maddox [ctb], Steve Simpson [ctb], Jennifer Bryan [ctb]
# Maintainer: Matthew Lincoln <matthew.d.lincoln@gmail.com>
# Repository: CRAN
# Date/Publication: 2022-02-22 00:58:45 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
