{% set version = "0.1-2" %}

package:
  name: r-uuid
  version: {{ version.replace("-", "_") }}

source:
  fn: uuid_{{ version }}.tar.gz
  url:
    - http://cran.r-project.org/src/contrib/uuid_{{ version }}.tar.gz
    - http://cran.r-project.org/src/contrib/Archive/uuid/uuid_{{ version }}.tar.gz
  sha256: dd71704dc336b0857981b92a75ed9877d4ca47780b1682def28839304cd3b1be

build:
  number: 0
  skip: True  # [win32]
  script: R CMD INSTALL --build .
  rpaths:
    - lib/R/lib/
    - lib/

requirements:  # [not win32]
  build:  # [not win32]
    - r-base  # [not win32]
    - posix  # [win64]
    - m2w64-toolchain  # [win64]
    - gcc  # [not win]
  run:  # [not win32]
    - r-base  # [not win32]

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

about:
  home: http://www.rforge.net/uuid
  license: MIT
  license_file: LICENSE
  summary: 'Tools for generating and handling of UUIDs (Universally Unique Identifiers).'

extra:
  recipe-maintainers:
    - ocefpaf
