wok-next view noto-serif/receipt @ rev 20430
fake-sane: fix copy-paste typo
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jan 24 13:29:11 2018 +0200 (2018-01-24) |
parents | 03550e87324e |
children | d43bf7aae921 |
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 copy *.ttf
52 }