wok-6.x view noto-sans/receipt @ rev 21445
updated mjpegtools and mjpegtools-dev (2.0.0 -> 2.1.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 29 15:41:32 2019 +0100 (2019-04-29) |
parents | |
children | ba1e68274f76 |
line source
1 # SliTaz package receipt.
3 PACKAGE="noto-sans"
4 VERSION="1.06"
5 COMMIT="ad153f5"
6 CATEGORY="fonts"
7 SHORT_DESC="Noto Sans 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/NotoSans-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 "ad153f5" bumped version of "NotoSans-*" fonts to "1.06":
28 # https://github.com/googlei18n/noto-fonts/commit/ad153f5a14c838afb16c83f0a02784c7605f1e21
30 mkdir -p $src
31 for font in Regular Bold Italic BoldItalic; do
32 get_file="NotoSans-$font.ttf"
33 save_file="NotoSans-$font-$VERSION.ttf"
34 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
35 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
36 [ -e "$SRC/$save_file" ] || exit 1
37 cp "$SRC/$save_file" "$src/$get_file"
38 done
40 # Install
42 f=$install/usr/share/fonts/truetype/noto
43 mkdir -p $f
44 cp -a $src/*.ttf $f
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cook_copy_files *.ttf
51 }