{% set version = '1.16' %}

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

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

source:
  fn: SPARQL_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/SPARQL_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/SPARQL/SPARQL_{{ version }}.tar.gz
  sha256: 2cb366b2b93804c12f17254a1c37687887fc12047b58b13aab0d7a6f000e533d

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base
    - r-rcurl
    - r-xml

  run:
    - r-base
    - r-rcurl
    - r-xml

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

about:
  home: https://CRAN.R-project.org/package=SPARQL
  license: GPL-3
  summary: 'Use SPARQL to pose SELECT or UPDATE queries to an end-point. '

  license_family: GPL3

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