wok view noto-sans/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents ba1e68274f76
children 7364ffdaaa60
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/googlei18n/noto-fonts/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # The Noto font web site provides downloads:
30 # https://noto-website-2.storage.googleapis.com/pkgs/NotoSans-hinted.zip
31 # But these files are not versioned, so we never know which version we are
32 # currently to package.
34 # In other hand, Github project provides versioned downloads, but only in
35 # form of "all in one" huge file.
37 # Solution: download individual versioned font files from Github project.
38 # This commit "ad153f5" bumped version of "NotoSans-*" fonts to "1.06":
39 # https://github.com/googlei18n/noto-fonts/commit/ad153f5a14c838afb16c83f0a02784c7605f1e21
41 mv $TARBALL NotoSans-Regular.ttf
42 for font in Bold Italic BoldItalic; do
43 get_file="NotoSans-$font.ttf"
44 save_file="NotoSans-$font-$VERSION.ttf"
45 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
46 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
47 [ -e "$SRC/$save_file" ] || exit 1
48 cp "$SRC/$save_file" "$src/$get_file"
49 done
51 # Install
53 f=$install/usr/share/fonts/truetype/noto
54 mkdir -p $f
55 cp -a $src/*.ttf $f
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 cook_copy_files *.ttf
62 }