{% set version = '0.6-1' %}

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

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

source:
  fn: DBI_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/DBI_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/DBI/DBI_{{ version }}.tar.gz
  sha256: f94d878ce61f8dc073f95dfc83c3aeebf2c92db990679bfacf831a4b262ae1b9

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: http://rstats-db.github.io/DBI
  license: LGPL (>= 2)
  summary: A database interface definition for communication between R and relational database
    management systems.  All classes in this package are virtual and need to be extended
    by the various R/DBMS implementations.
  license_family: LGPL

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
