wok view noto-serif/receipt @ rev 20742
updated bchunk (1.2.0 -> 1.2.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 10 09:37:43 2019 +0100 (2019-02-10) |
parents | |
children | ba1e68274f76 |
line source
1 # SliTaz package receipt.
3 PACKAGE="noto-serif"
4 VERSION="1.06"
5 COMMIT="0af3d5f"
6 CATEGORY="fonts"
7 SHORT_DESC="Noto Serif TrueType fonts"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="OFL"
10 WEB_SITE="http://www.google.com/get/noto/"
11 TAGS="font"
13 SIBLINGS="noto-serif"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 # The Noto font web site provides downloads:
19 # https://noto-website-2.storage.googleapis.com/pkgs/NotoSerif-hinted.zip
20 # But these files are not versioned, so we never know which version we are
21 # currently to package.
23 # In other hand, Github project provides versioned downloads, but only in
24 # form of "all in one" huge file.
26 # Solution: download individual versioned font files from Github project.
27 # This commit "0af3d5f" bumped version of "NotoSerif-*" fonts to "1.06"
28 # (NotoSerif-Italic was bumped to 1.07):
29 # https://github.com/googlei18n/noto-fonts/commit/0af3d5fd0830eaeb1825044b2f4c04125eacf08f
31 mkdir -p $src
32 for variant in Regular Bold Italic BoldItalic; do
33 get_file="NotoSerif-$variant.ttf"
34 save_file="NotoSerif-$variant-$VERSION.ttf"
35 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
36 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
37 [ -e "$SRC/$save_file" ] || exit 1
38 cp "$SRC/$save_file" "$src/$get_file"
39 done
41 # Install
43 f=$install/usr/share/fonts/truetype/noto
44 mkdir -p $f
45 cp -a $src/*.ttf $f
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 cook_copy_files *.ttf
52 }