wok view noto-mono/receipt @ rev 24365

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