{% set version = '2.0.3' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/pkgconfig_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/pkgconfig/pkgconfig_{{ version }}.tar.gz
  sha256: 330fef440ffeb842a7dcfffc8303743f1feae83e8d6131078b5a44ff11bc3850

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, testthat, disposables (>= 1.0.3)
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('pkgconfig')"           # [not win]
    - "\"%R%\" -e \"library('pkgconfig')\""  # [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/r-lib/pkgconfig#readme
  license: MIT
  summary: Set configuration options on a per-package basis. Options set by a given package only
    apply to that package, other packages are unaffected.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

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

# The original CRAN metadata for this package was:

# Package: pkgconfig
# Title: Private Configuration for 'R' Packages
# Version: 2.0.3
# Author: Gabor Csardi
# Maintainer: Gabor Csardi <csardi.gabor@gmail.com>
# Description: Set configuration options on a per-package basis. Options set by a given package only apply to that package, other packages are unaffected.
# License: MIT + file LICENSE
# LazyData: true
# Imports: utils
# Suggests: covr, testthat, disposables (>= 1.0.3)
# URL: https://github.com/r-lib/pkgconfig#readme
# BugReports: https://github.com/r-lib/pkgconfig/issues
# Encoding: UTF-8
# NeedsCompilation: no
# Packaged: 2019-09-22 08:42:40 UTC; gaborcsardi
# Repository: CRAN
# Date/Publication: 2019-09-22 09:20:02 UTC

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