wok view noto-sans/receipt @ rev 24228
syslinux: add apple partitions (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 01 11:57:50 2022 +0000 (2022-01-01) |
parents | 03550e87324e |
children | b569b85b0fb9 |
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 font=Regular
12 TARBALL="NotoSans-$font-$VERSION.ttf"
13 EXTRA_SOURCE_FILES="NotoSans-Bold-$VERSION.ttf NotoSans-Italic-$VERSION.ttf NotoSans-BoldItalic-$VERSION.ttf"
14 WGET_URL="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/NotoSans-$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/NotoSans-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 "ad153f5" bumped version of "NotoSans-*" fonts to "1.06":
32 # https://github.com/googlei18n/noto-fonts/commit/ad153f5a14c838afb16c83f0a02784c7605f1e21
34 mv $TARBALL NotoSans-Regular.ttf
35 for font in Bold Italic BoldItalic; do
36 get_file="NotoSans-$font.ttf"
37 save_file="NotoSans-$font-$VERSION.ttf"
38 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
39 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
40 [ -e "$SRC/$save_file" ] || exit 1
41 cp "$SRC/$save_file" "$src/$get_file"
42 done
44 # Install
46 f=$install/usr/share/fonts/truetype/noto
47 mkdir -p $f
48 cp -a $src/*.ttf $f
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 cook_copy_files *.ttf
55 }