{% set version = '0.83' %}

package:
  name: font-ttf-ubuntu
  version: {{ version }}

source:
  url: https://assets.ubuntu.com/v1/0cef8205-ubuntu-font-family-{{ version }}.zip
  sha256: 61a2b342526fd552f19fef438bb9211a8212de19ad96e32a1209c039f1d68ecf

build:
  number: 0
  noarch: generic

test:
  requires:
    # dummy to have at least one test env requirement
    - bzip2
  commands:
    - test -f ${PREFIX}/fonts/Ubuntu-B.ttf       # [unix]
    - test -f ${PREFIX}/fonts/Ubuntu-BI.ttf      # [unix]
    - test -f ${PREFIX}/fonts/Ubuntu-C.ttf       # [unix]
    - test -f ${PREFIX}/fonts/Ubuntu-L.ttf       # [unix]
    - test -f ${PREFIX}/fonts/Ubuntu-LI.ttf      # [unix]
    - test -f ${PREFIX}/fonts/Ubuntu-M.ttf       # [unix]
    - test -f ${PREFIX}/fonts/Ubuntu-MI.ttf      # [unix]
    - test -f ${PREFIX}/fonts/Ubuntu-R.ttf       # [unix]
    - test -f ${PREFIX}/fonts/Ubuntu-RI.ttf      # [unix]
    - test -f ${PREFIX}/fonts/Ubuntu-Th.ttf      # [unix]
    - test -f ${PREFIX}/fonts/UbuntuMono-B.ttf   # [unix]
    - test -f ${PREFIX}/fonts/UbuntuMono-BI.ttf  # [unix]
    - test -f ${PREFIX}/fonts/UbuntuMono-R.ttf   # [unix]
    - test -f ${PREFIX}/fonts/UbuntuMono-RI.ttf  # [unix]

about:
  home: https://design.ubuntu.com/font/
  summary: The Ubuntu Font Family
  description: |
    A unique, custom designed font that has a very distinctive look and feel.
  license: Ubuntu Font Licence Version 1.0
  license_file: LICENCE.txt
  license_family: Other

extra:
  recipe-maintainers:
    - dbast
