{% set version = "0.6.15" %}

package:
  name: r-digest
  version: {{ version }}

source:
  fn: digest_{{ version }}.tar.gz
  url:
    - http://cran.r-project.org/src/contrib/digest_{{ version }}.tar.gz
    - http://cran.r-project.org/src/contrib/Archive/digest/digest_{{ version }}.tar.gz
  sha256: 882e74bb4f0722260bd912fd7f8a0fcefcf44c558f43ac8a03d63e53d25444c5

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

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

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

about:
  home: http://dirk.eddelbuettel.com/code/digest.html
  license: GPL-2.0
  summary: |
    Implementation of a function 'digest()' for the creation  of hash digests of arbitrary
    R objects (using the 'md5', 'sha-1', 'sha-256',  'crc32', 'xxhash' and 'murmurhash'
    algorithms) permitting easy comparison of R language objects, as well as a function
    'hmac()' to create hash-based message authentication code. Please note that this
    package is not meant to be deployed for cryptographic purposes for which more comprehensive
    (and widely tested) libraries such as 'OpenSSL' should be used.

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