wok-6.x annotate noto-mono/receipt @ rev 20748
created package cpige 1.5
author | Hans-G?nter Theisgen |
---|---|
date | Mon Feb 11 15:42:12 2019 +0100 (2019-02-11) |
parents | |
children | ba1e68274f76 |
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/" |
al@19307 | 11 TAGS="font" |
al@19307 | 12 |
al@19307 | 13 # Rules to configure and make the package. |
al@19307 | 14 compile_rules() |
al@19307 | 15 { |
al@19307 | 16 # The Noto font web site don't provides downloads of "Noto Mono". |
al@19307 | 17 |
al@19307 | 18 # Github project provides versioned downloads, but only in form of |
al@19307 | 19 # "all in one" huge file. |
al@19307 | 20 |
al@19307 | 21 # Solution: download individual versioned font files from Github project. |
al@19307 | 22 # This commit "5329592" introduced "NotoMono-*" font version "1.00": |
al@19307 | 23 # https://github.com/googlei18n/noto-fonts/commit/5329592b9d0fee9fc8e462b328884a011811ff2c |
al@19307 | 24 |
al@19307 | 25 mkdir -p $src |
al@19307 | 26 for font in Regular; do |
al@19307 | 27 get_file="NotoMono-$font.ttf" |
al@19307 | 28 save_file="NotoMono-$font-$VERSION.ttf" |
al@19307 | 29 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file" |
al@19307 | 30 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url |
al@19307 | 31 [ -e "$SRC/$save_file" ] || exit 1 |
al@19307 | 32 cp "$SRC/$save_file" "$src/$get_file" |
al@19307 | 33 done |
al@19307 | 34 |
al@19307 | 35 f=$install/usr/share/fonts/truetype/noto |
al@19307 | 36 mkdir -p $f |
al@19307 | 37 cp -a $src/*.ttf $f |
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 } |