wok-next view noto-mono/receipt @ rev 21721

created recipes for efivar and efibootmgr
author Hans-G?nter Theisgen
date Tue Sep 01 10:09:15 2020 +0100 (2020-09-01)
parents 4e6503d7a19f
children
line source
1 # SliTaz package receipt v2.
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 REPOLOGY="fonts:noto"
13 compile_rules() {
14 # The Noto font web site don't provides downloads of "Noto Mono".
16 # Github project provides versioned downloads, but only in form of
17 # "all in one" huge file.
19 # Solution: download individual versioned font files from Github project.
20 # This commit "5329592" introduced "NotoMono-*" font version "1.00":
21 # https://github.com/googlei18n/noto-fonts/commit/5329592b9d0fee9fc8e462b328884a011811ff2c
23 mkdir -p $src
24 for font in Regular; do
25 get_file="NotoMono-$font.ttf"
26 save_file="NotoMono-$font-$VERSION.ttf"
27 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
28 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
29 [ -e "$SRC/$save_file" ] || return 1
30 cp "$SRC/$save_file" "$src/$get_file"
31 done
33 f=$install/usr/share/fonts/truetype/noto
34 mkdir -p $f
35 cp -a $src/*.ttf $f
36 }
38 genpkg_rules() {
39 copy *.ttf
40 TAGS="font"
41 }