wok rev 19307

Add Noto fonts: noto-sans, noto-serif, noto-mono
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jul 10 20:46:36 2016 +0300 (2016-07-10)
parents c460585add2a
children f4028fc98216
files noto-mono/description.txt noto-mono/receipt noto-sans/description.txt noto-sans/receipt noto-serif/description.txt noto-serif/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/noto-mono/description.txt	Sun Jul 10 20:46:36 2016 +0300
     1.3 @@ -0,0 +1,14 @@
     1.4 +Beautiful and free fonts for all languages
     1.5 +
     1.6 +When text is rendered by a computer, sometimes characters are displayed as
     1.7 +“tofu”. They are little boxes to indicate your device doesn’t have a font to
     1.8 +display the text.
     1.9 +
    1.10 +Google has been developing a font family called Noto, which aims to support all
    1.11 +languages with a harmonious look and feel. Noto is Google’s answer to tofu. The
    1.12 +name noto is to convey the idea that Google’s goal is to see “**no** more
    1.13 +**to**fu”. Noto has multiple styles and weights, and freely available to all.
    1.14 +The comprehensive set of fonts and tools used in our development are available
    1.15 +in our [GitHub repositories](https://github.com/googlei18n?query=noto).
    1.16 +
    1.17 +All Noto fonts are now licensed under OFL.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/noto-mono/receipt	Sun Jul 10 20:46:36 2016 +0300
     2.3 @@ -0,0 +1,44 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="noto-mono"
     2.7 +VERSION="1.00"
     2.8 +COMMIT="5329592"
     2.9 +CATEGORY="fonts"
    2.10 +SHORT_DESC="Noto Mono TrueType font"
    2.11 +MAINTAINER="al.bobylev@gmail.com"
    2.12 +LICENSE="OFL"
    2.13 +WEB_SITE="http://www.google.com/get/noto/"
    2.14 +TAGS="font"
    2.15 +
    2.16 +# Rules to configure and make the package.
    2.17 +compile_rules()
    2.18 +{
    2.19 +	# The Noto font web site don't provides downloads of "Noto Mono".
    2.20 +
    2.21 +	# Github project provides versioned downloads, but only in form of
    2.22 +	# "all in one" huge file.
    2.23 +
    2.24 +	# Solution: download individual versioned font files from Github project.
    2.25 +	# This commit "5329592" introduced "NotoMono-*" font version "1.00":
    2.26 +	# https://github.com/googlei18n/noto-fonts/commit/5329592b9d0fee9fc8e462b328884a011811ff2c
    2.27 +
    2.28 +	mkdir -p $src
    2.29 +	for font in Regular; do
    2.30 +		 get_file="NotoMono-$font.ttf"
    2.31 +		save_file="NotoMono-$font-$VERSION.ttf"
    2.32 +		url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
    2.33 +		[ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
    2.34 +		[ -e "$SRC/$save_file" ] || exit 1
    2.35 +		cp "$SRC/$save_file" "$src/$get_file"
    2.36 +	done
    2.37 +
    2.38 +	f=$install/usr/share/fonts/truetype/noto
    2.39 +	mkdir -p $f
    2.40 +	cp -a $src/*.ttf $f
    2.41 +}
    2.42 +
    2.43 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.44 +genpkg_rules()
    2.45 +{
    2.46 +	cook_copy_files *.ttf
    2.47 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/noto-sans/description.txt	Sun Jul 10 20:46:36 2016 +0300
     3.3 @@ -0,0 +1,14 @@
     3.4 +Beautiful and free fonts for all languages
     3.5 +
     3.6 +When text is rendered by a computer, sometimes characters are displayed as
     3.7 +“tofu”. They are little boxes to indicate your device doesn’t have a font to
     3.8 +display the text.
     3.9 +
    3.10 +Google has been developing a font family called Noto, which aims to support all
    3.11 +languages with a harmonious look and feel. Noto is Google’s answer to tofu. The
    3.12 +name noto is to convey the idea that Google’s goal is to see “**no** more
    3.13 +**to**fu”. Noto has multiple styles and weights, and freely available to all.
    3.14 +The comprehensive set of fonts and tools used in our development are available
    3.15 +in our [GitHub repositories](https://github.com/googlei18n?query=noto).
    3.16 +
    3.17 +All Noto fonts are now licensed under OFL.
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/noto-sans/receipt	Sun Jul 10 20:46:36 2016 +0300
     4.3 @@ -0,0 +1,51 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="noto-sans"
     4.7 +VERSION="1.06"
     4.8 +COMMIT="ad153f5"
     4.9 +CATEGORY="fonts"
    4.10 +SHORT_DESC="Noto Sans TrueType fonts"
    4.11 +MAINTAINER="al.bobylev@gmail.com"
    4.12 +LICENSE="OFL"
    4.13 +WEB_SITE="http://www.google.com/get/noto/"
    4.14 +TAGS="font"
    4.15 +
    4.16 +SIBLINGS="noto-serif"
    4.17 +
    4.18 +# Rules to configure and make the package.
    4.19 +compile_rules()
    4.20 +{
    4.21 +	# The Noto font web site provides downloads:
    4.22 +	# https://noto-website-2.storage.googleapis.com/pkgs/NotoSans-hinted.zip
    4.23 +	# But these files are not versioned, so we never know which version we are
    4.24 +	# currently to package.
    4.25 +
    4.26 +	# In other hand, Github project provides versioned downloads, but only in
    4.27 +	# form of "all in one" huge file.
    4.28 +
    4.29 +	# Solution: download individual versioned font files from Github project.
    4.30 +	# This commit "ad153f5" bumped version of "NotoSans-*" fonts to "1.06":
    4.31 +	# https://github.com/googlei18n/noto-fonts/commit/ad153f5a14c838afb16c83f0a02784c7605f1e21
    4.32 +
    4.33 +	mkdir -p $src
    4.34 +	for font in Regular Bold Italic BoldItalic; do
    4.35 +		 get_file="NotoSans-$font.ttf"
    4.36 +		save_file="NotoSans-$font-$VERSION.ttf"
    4.37 +		url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
    4.38 +		[ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
    4.39 +		[ -e "$SRC/$save_file" ] || exit 1
    4.40 +		cp "$SRC/$save_file" "$src/$get_file"
    4.41 +	done
    4.42 +
    4.43 +	# Install
    4.44 +
    4.45 +	f=$install/usr/share/fonts/truetype/noto
    4.46 +	mkdir -p $f
    4.47 +	cp -a $src/*.ttf $f
    4.48 +}
    4.49 +
    4.50 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.51 +genpkg_rules()
    4.52 +{
    4.53 +	cook_copy_files *.ttf
    4.54 +}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/noto-serif/description.txt	Sun Jul 10 20:46:36 2016 +0300
     5.3 @@ -0,0 +1,14 @@
     5.4 +Beautiful and free fonts for all languages
     5.5 +
     5.6 +When text is rendered by a computer, sometimes characters are displayed as
     5.7 +“tofu”. They are little boxes to indicate your device doesn’t have a font to
     5.8 +display the text.
     5.9 +
    5.10 +Google has been developing a font family called Noto, which aims to support all
    5.11 +languages with a harmonious look and feel. Noto is Google’s answer to tofu. The
    5.12 +name noto is to convey the idea that Google’s goal is to see “**no** more
    5.13 +**to**fu”. Noto has multiple styles and weights, and freely available to all.
    5.14 +The comprehensive set of fonts and tools used in our development are available
    5.15 +in our [GitHub repositories](https://github.com/googlei18n?query=noto).
    5.16 +
    5.17 +All Noto fonts are now licensed under OFL.
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/noto-serif/receipt	Sun Jul 10 20:46:36 2016 +0300
     6.3 @@ -0,0 +1,52 @@
     6.4 +# SliTaz package receipt.
     6.5 +
     6.6 +PACKAGE="noto-serif"
     6.7 +VERSION="1.06"
     6.8 +COMMIT="0af3d5f"
     6.9 +CATEGORY="fonts"
    6.10 +SHORT_DESC="Noto Serif TrueType fonts"
    6.11 +MAINTAINER="al.bobylev@gmail.com"
    6.12 +LICENSE="OFL"
    6.13 +WEB_SITE="http://www.google.com/get/noto/"
    6.14 +TAGS="font"
    6.15 +
    6.16 +SIBLINGS="noto-serif"
    6.17 +
    6.18 +# Rules to configure and make the package.
    6.19 +compile_rules()
    6.20 +{
    6.21 +	# The Noto font web site provides downloads:
    6.22 +	# https://noto-website-2.storage.googleapis.com/pkgs/NotoSerif-hinted.zip
    6.23 +	# But these files are not versioned, so we never know which version we are
    6.24 +	# currently to package.
    6.25 +
    6.26 +	# In other hand, Github project provides versioned downloads, but only in
    6.27 +	# form of "all in one" huge file.
    6.28 +
    6.29 +	# Solution: download individual versioned font files from Github project.
    6.30 +	# This commit "0af3d5f" bumped version of "NotoSerif-*" fonts to "1.06"
    6.31 +	# (NotoSerif-Italic was bumped to 1.07):
    6.32 +	# https://github.com/googlei18n/noto-fonts/commit/0af3d5fd0830eaeb1825044b2f4c04125eacf08f
    6.33 +
    6.34 +	mkdir -p $src
    6.35 +	for variant in Regular Bold Italic BoldItalic; do
    6.36 +		 get_file="NotoSerif-$variant.ttf"
    6.37 +		save_file="NotoSerif-$variant-$VERSION.ttf"
    6.38 +		url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
    6.39 +		[ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
    6.40 +		[ -e "$SRC/$save_file" ] || exit 1
    6.41 +		cp "$SRC/$save_file" "$src/$get_file"
    6.42 +	done
    6.43 +
    6.44 +	# Install
    6.45 +
    6.46 +	f=$install/usr/share/fonts/truetype/noto
    6.47 +	mkdir -p $f
    6.48 +	cp -a $src/*.ttf $f
    6.49 +}
    6.50 +
    6.51 +# Rules to gen a SliTaz package suitable for Tazpkg.
    6.52 +genpkg_rules()
    6.53 +{
    6.54 +	cook_copy_files *.ttf
    6.55 +}