{% set version = '2.038' %}

package:
  name: font-ttf-source-code-pro
  version: {{ version }}

source:
  url: https://github.com/adobe-fonts/source-code-pro/archive/refs/tags/{{ version }}R-ro/1.058R-it/1.018R-VAR.tar.gz
  sha256: d8f879fefd66ecb7291ea2d73984b9c0a97fb499424e58290ba6b81787d0c725

build:
  number: 0
  noarch: generic

test:
  requires:
    # dummy to have at least one test env requirement
    - bzip2
  commands:
    - test -f ${PREFIX}/fonts/SourceCodePro-Black.ttf         # [unix]
    - test -f ${PREFIX}/fonts/SourceCodePro-BlackIt.ttf       # [unix]
    - test -f ${PREFIX}/fonts/SourceCodePro-Bold.ttf          # [unix]
    - test -f ${PREFIX}/fonts/SourceCodePro-BoldIt.ttf        # [unix]
    - test -f ${PREFIX}/fonts/SourceCodePro-ExtraLight.ttf    # [unix]
    - test -f ${PREFIX}/fonts/SourceCodePro-ExtraLightIt.ttf  # [unix]
    - test -f ${PREFIX}/fonts/SourceCodePro-It.ttf            # [unix]
    - test -f ${PREFIX}/fonts/SourceCodePro-Light.ttf         # [unix]
    - test -f ${PREFIX}/fonts/SourceCodePro-LightIt.ttf       # [unix]
    - test -f ${PREFIX}/fonts/SourceCodePro-Medium.ttf        # [unix]
    - test -f ${PREFIX}/fonts/SourceCodePro-MediumIt.ttf      # [unix]
    - test -f ${PREFIX}/fonts/SourceCodePro-Regular.ttf       # [unix]
    - test -f ${PREFIX}/fonts/SourceCodePro-Semibold.ttf      # [unix]
    - test -f ${PREFIX}/fonts/SourceCodePro-SemiboldIt.ttf    # [unix]

about:
  home: https://adobe-fonts.github.io/source-code-pro/
  summary: A set of fonts that have been designed to work well in UI environments
  license: OFL-1.1
  license_file: LICENSE.md
  license_family: Other

extra:
  recipe-maintainers:
    - dbast
