wok-current annotate noto-mono/receipt @ rev 25483

created recipe for py3k-six
author Hans-G?nter Theisgen
date Mon Oct 17 07:54:33 2022 +0100 (2022-10-17)
parents ba1e68274f76
children
rev   line source
al@19307 1 # SliTaz package receipt.
al@19307 2
al@19307 3 PACKAGE="noto-mono"
al@19307 4 VERSION="1.00"
al@19307 5 COMMIT="5329592"
al@19307 6 CATEGORY="fonts"
al@19307 7 SHORT_DESC="Noto Mono TrueType font"
al@19307 8 MAINTAINER="al.bobylev@gmail.com"
al@19307 9 LICENSE="OFL"
al@19307 10 WEB_SITE="http://www.google.com/get/noto/"
pascal@22338 11 font=Regular
pascal@22338 12 TARBALL="NotoMono-$font-$VERSION.ttf"
pascal@22338 13 WGET_URL="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/NotoMono-$font.ttf"
al@19307 14 TAGS="font"
al@19307 15
pascal@24308 16 # What is the latest version available today?
pascal@24308 17 current_version()
pascal@24308 18 {
pascal@24308 19 wget -O - https://github.com/googlei18n/noto-fonts/releases 2>/dev/null | \
pascal@24308 20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24308 21 }
pascal@24308 22
al@19307 23 # Rules to configure and make the package.
al@19307 24 compile_rules()
al@19307 25 {
al@19307 26 # The Noto font web site don't provides downloads of "Noto Mono".
al@19307 27
al@19307 28 # Github project provides versioned downloads, but only in form of
al@19307 29 # "all in one" huge file.
al@19307 30
al@19307 31 # Solution: download individual versioned font files from Github project.
al@19307 32 # This commit "5329592" introduced "NotoMono-*" font version "1.00":
al@19307 33 # https://github.com/googlei18n/noto-fonts/commit/5329592b9d0fee9fc8e462b328884a011811ff2c
al@19307 34
al@19307 35 f=$install/usr/share/fonts/truetype/noto
al@19307 36 mkdir -p $f
pascal@22338 37 cp -a $src/*.ttf $f/NotoMono-Regular.ttf
al@19307 38 }
al@19307 39
al@19307 40 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19307 41 genpkg_rules()
al@19307 42 {
al@19307 43 cook_copy_files *.ttf
al@19307 44 }