{% set version = '1.4' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/BetaBit_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/BetaBit/BetaBit_{{ version }}.tar.gz
  sha256: 7631ef4a74b22944d286f279f51be95d45fda89357b5d5f5078c79206aa29b85

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: XML, sp, raster, DALEX, ggplot2
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-digest

  run:
    - r-base
    - r-digest

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('BetaBit')"           # [not win]
    - "\"%R%\" -e \"library('BetaBit')\""  # [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://betabit.wiki
  license: GPL-2
  summary: 'Three games: proton, frequon and regression. Each one is a console-based data-crunching
    game for younger and older data scientists. Act as a data-hacker and find Slawomir
    Pietraszko''s credentials to the Proton server. In proton you have to solve four
    data-based puzzles to find the login and password. There are many ways to solve
    these puzzles. You may use loops, data filtering, ordering, aggregation or other
    tools. Only basics knowledge of R is required to play the game, yet the more functions
    you know, the more approaches you can try. In frequon you will help to perform statistical
    cryptanalytic attack on a corpus of ciphered messages. This time seven sub-tasks
    are pushing the bar much higher. Do you accept the challenge? In regression you
    will test your modeling skills in a series of eight sub-tasks. Try only if ANOVA
    is your close friend. It''s a part of Beta and Bit project. You will find more about
    the Beta and Bit project at <https://betabit.wiki>.'
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Package: BetaBit
# Title: Mini Games from Adventures of Beta and Bit
# Version: 1.4
# Authors@R: c( person("Przemyslaw", "Biecek", email = "przemyslaw.biecek@gmail.com", role = c("aut", "cre")), person("Witold", "Chodor", email = "witoldchodor@gmail.com", role = c("trl")), person("Katarzyna", "Fak", role = c("aut")), person("Tomasz", "Zoltak", role = c("aut")), person("Foundation", "SmarterPoland.pl", email = "smarterpoland@gmail.com", role = c("cph")))
# Description: Three games: proton, frequon and regression. Each one is a console-based data-crunching game for younger and older data scientists. Act as a data-hacker and find Slawomir Pietraszko's credentials to the Proton server. In proton you have to solve four data-based puzzles to find the login and password. There are many ways to solve these puzzles. You may use loops, data filtering, ordering, aggregation or other tools. Only basics knowledge of R is required to play the game, yet the more functions you know, the more approaches you can try. In frequon you will help to perform statistical cryptanalytic attack on a corpus of ciphered messages. This time seven sub-tasks are pushing the bar much higher. Do you accept the challenge? In regression you will test your modeling skills in a series of eight sub-tasks. Try only if ANOVA is your close friend. It's a part of Beta and Bit project. You will find more about the Beta and Bit project at <https://betabit.wiki>.
# Depends: R (>= 3.0.0)
# Imports: digest
# Suggests: XML, sp, raster, DALEX, ggplot2
# License: GPL-2
# LazyData: true
# Encoding: UTF-8
# URL: https://betabit.wiki
# BugReports: https://github.com/BetaAndBit/BetaBitRgame/issues
# RoxygenNote: 7.1.1
# NeedsCompilation: no
# Packaged: 2020-10-03 10:38:33 UTC; pbiecek
# Author: Przemyslaw Biecek [aut, cre], Witold Chodor [trl], Katarzyna Fak [aut], Tomasz Zoltak [aut], Foundation SmarterPoland.pl [cph]
# Maintainer: Przemyslaw Biecek <przemyslaw.biecek@gmail.com>
# Repository: CRAN
# Date/Publication: 2020-10-03 14:40:06 UTC

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