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