wok-next annotate noto-sans/receipt @ rev 20738

Up scons (3.0.1); add scons2 (2.5.1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 29 21:13:51 2018 +0300 (2018-05-29)
parents f463de72afe3
children 4e6503d7a19f
rev   line source
al@20513 1 # SliTaz package receipt v2.
al@19307 2
al@19307 3 PACKAGE="noto-sans"
al@19307 4 VERSION="1.06"
al@19307 5 COMMIT="ad153f5"
al@19307 6 CATEGORY="fonts"
al@19307 7 SHORT_DESC="Noto Sans 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@19307 11
al@19307 12 SIBLINGS="noto-serif"
al@19307 13
al@20513 14 compile_rules() {
al@19307 15 # The Noto font web site provides downloads:
al@19307 16 # https://noto-website-2.storage.googleapis.com/pkgs/NotoSans-hinted.zip
al@19307 17 # But these files are not versioned, so we never know which version we are
al@19307 18 # currently to package.
al@19307 19
al@19307 20 # In other hand, Github project provides versioned downloads, but only in
al@19307 21 # form of "all in one" huge file.
al@19307 22
al@19307 23 # Solution: download individual versioned font files from Github project.
al@19307 24 # This commit "ad153f5" bumped version of "NotoSans-*" fonts to "1.06":
al@19307 25 # https://github.com/googlei18n/noto-fonts/commit/ad153f5a14c838afb16c83f0a02784c7605f1e21
al@19307 26
al@19307 27 mkdir -p $src
al@19307 28 for font in Regular Bold Italic BoldItalic; do
al@19307 29 get_file="NotoSans-$font.ttf"
al@19307 30 save_file="NotoSans-$font-$VERSION.ttf"
al@19307 31 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
al@19307 32 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
al@19307 33 [ -e "$SRC/$save_file" ] || exit 1
al@19307 34 cp "$SRC/$save_file" "$src/$get_file"
al@19307 35 done
al@19307 36
al@19307 37 # Install
al@19307 38
al@19307 39 f=$install/usr/share/fonts/truetype/noto
al@19307 40 mkdir -p $f
al@19307 41 cp -a $src/*.ttf $f
al@19307 42 }
al@19307 43
al@20513 44 genpkg_rules() {
al@19783 45 copy *.ttf
al@20513 46 TAGS="font"
al@19307 47 }