wok-next view noto-serif/receipt @ rev 21723

busybox: update patches
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:44:52 2020 +0000 (2020-09-01)
parents 4e6503d7a19f
children
line source
1 # SliTaz package receipt v2.
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 REPOLOGY="fonts:noto"
13 SIBLINGS="noto-serif"
15 compile_rules() {
16 # The Noto font web site provides downloads:
17 # https://noto-website-2.storage.googleapis.com/pkgs/NotoSerif-hinted.zip
18 # But these files are not versioned, so we never know which version we are
19 # currently to package.
21 # In other hand, Github project provides versioned downloads, but only in
22 # form of "all in one" huge file.
24 # Solution: download individual versioned font files from Github project.
25 # This commit "0af3d5f" bumped version of "NotoSerif-*" fonts to "1.06"
26 # (NotoSerif-Italic was bumped to 1.07):
27 # https://github.com/googlei18n/noto-fonts/commit/0af3d5fd0830eaeb1825044b2f4c04125eacf08f
29 mkdir -p $src
30 for variant in Regular Bold Italic BoldItalic; do
31 get_file="NotoSerif-$variant.ttf"
32 save_file="NotoSerif-$variant-$VERSION.ttf"
33 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
34 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
35 [ -e "$SRC/$save_file" ] || return 1
36 cp "$SRC/$save_file" "$src/$get_file"
37 done
39 # Install
41 f=$install/usr/share/fonts/truetype/noto
42 mkdir -p $f
43 cp -a $src/*.ttf $f
44 }
46 genpkg_rules() {
47 copy *.ttf
48 TAGS="font"
49 }