wok-next annotate noto-serif/receipt @ rev 21313

updated iperf (2.0.5 -> 3.7)
author Hans-G?nter Theisgen
date Tue Dec 10 16:12:48 2019 +0100 (2019-12-10)
parents 4e6503d7a19f
children
rev   line source
al@20513 1 # SliTaz package receipt v2.
al@19307 2
al@19307 3 PACKAGE="noto-serif"
al@19307 4 VERSION="1.06"
al@19307 5 COMMIT="0af3d5f"
al@19307 6 CATEGORY="fonts"
al@19307 7 SHORT_DESC="Noto Serif TrueType fonts"
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@19307 13 SIBLINGS="noto-serif"
al@19307 14
al@20513 15 compile_rules() {
al@19307 16 # The Noto font web site provides downloads:
al@19307 17 # https://noto-website-2.storage.googleapis.com/pkgs/NotoSerif-hinted.zip
al@19307 18 # But these files are not versioned, so we never know which version we are
al@19307 19 # currently to package.
al@19307 20
al@19307 21 # In other hand, Github project provides versioned downloads, but only in
al@19307 22 # form of "all in one" huge file.
al@19307 23
al@19307 24 # Solution: download individual versioned font files from Github project.
al@19307 25 # This commit "0af3d5f" bumped version of "NotoSerif-*" fonts to "1.06"
al@19307 26 # (NotoSerif-Italic was bumped to 1.07):
al@19307 27 # https://github.com/googlei18n/noto-fonts/commit/0af3d5fd0830eaeb1825044b2f4c04125eacf08f
al@19307 28
al@19307 29 mkdir -p $src
al@19307 30 for variant in Regular Bold Italic BoldItalic; do
al@19307 31 get_file="NotoSerif-$variant.ttf"
al@19307 32 save_file="NotoSerif-$variant-$VERSION.ttf"
al@19307 33 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
al@19307 34 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
al@21020 35 [ -e "$SRC/$save_file" ] || return 1
al@19307 36 cp "$SRC/$save_file" "$src/$get_file"
al@19307 37 done
al@19307 38
al@19307 39 # Install
al@19307 40
al@19307 41 f=$install/usr/share/fonts/truetype/noto
al@19307 42 mkdir -p $f
al@19307 43 cp -a $src/*.ttf $f
al@19307 44 }
al@19307 45
al@20513 46 genpkg_rules() {
al@19783 47 copy *.ttf
al@20513 48 TAGS="font"
al@19307 49 }