wok view noto-serif/receipt @ rev 23741

updated workerfm again (2.19.6 -> 4.1.0)
author Hans-G?nter Theisgen
date Fri May 01 11:25:13 2020 +0100 (2020-05-01)
parents 03550e87324e
children b569b85b0fb9
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 font=Regular
12 TARBALL="NotoSerif-$font-$VERSION.ttf"
13 EXTRA_SOURCE_FILES="NotoSerif-Bold-$VERSION.ttf NotoSerif-Italic-$VERSION.ttf NotoSerif-BoldItalic-$VERSION.ttf"
14 WGET_URL="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/NotoSerif-$font.ttf"
15 TAGS="font"
17 SIBLINGS="noto-serif"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # The Noto font web site provides downloads:
23 # https://noto-website-2.storage.googleapis.com/pkgs/NotoSerif-hinted.zip
24 # But these files are not versioned, so we never know which version we are
25 # currently to package.
27 # In other hand, Github project provides versioned downloads, but only in
28 # form of "all in one" huge file.
30 # Solution: download individual versioned font files from Github project.
31 # This commit "0af3d5f" bumped version of "NotoSerif-*" fonts to "1.06"
32 # (NotoSerif-Italic was bumped to 1.07):
33 # https://github.com/googlei18n/noto-fonts/commit/0af3d5fd0830eaeb1825044b2f4c04125eacf08f
35 mv $TARBALL NotoSerif-Regular.ttf
36 for font in Bold Italic BoldItalic; do
37 get_file="NotoSerif-$font.ttf"
38 save_file="NotoSerif-$font-$VERSION.ttf"
39 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
40 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
41 [ -e "$SRC/$save_file" ] || exit 1
42 cp "$SRC/$save_file" "$src/$get_file"
43 done
45 # Install
47 f=$install/usr/share/fonts/truetype/noto
48 mkdir -p $f
49 cp -a $src/*.ttf $f
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 cook_copy_files *.ttf
56 }