wok diff noto-serif/receipt @ rev 21407
updated lynx (2.8.8 -> 2.8.9)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 23 15:37:46 2019 +0100 (2019-04-23) |
parents | |
children | ba1e68274f76 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/noto-serif/receipt Tue Apr 23 15:37:46 2019 +0100 1.3 @@ -0,0 +1,52 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="noto-serif" 1.7 +VERSION="1.06" 1.8 +COMMIT="0af3d5f" 1.9 +CATEGORY="fonts" 1.10 +SHORT_DESC="Noto Serif TrueType fonts" 1.11 +MAINTAINER="al.bobylev@gmail.com" 1.12 +LICENSE="OFL" 1.13 +WEB_SITE="http://www.google.com/get/noto/" 1.14 +TAGS="font" 1.15 + 1.16 +SIBLINGS="noto-serif" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + # The Noto font web site provides downloads: 1.22 + # https://noto-website-2.storage.googleapis.com/pkgs/NotoSerif-hinted.zip 1.23 + # But these files are not versioned, so we never know which version we are 1.24 + # currently to package. 1.25 + 1.26 + # In other hand, Github project provides versioned downloads, but only in 1.27 + # form of "all in one" huge file. 1.28 + 1.29 + # Solution: download individual versioned font files from Github project. 1.30 + # This commit "0af3d5f" bumped version of "NotoSerif-*" fonts to "1.06" 1.31 + # (NotoSerif-Italic was bumped to 1.07): 1.32 + # https://github.com/googlei18n/noto-fonts/commit/0af3d5fd0830eaeb1825044b2f4c04125eacf08f 1.33 + 1.34 + mkdir -p $src 1.35 + for variant in Regular Bold Italic BoldItalic; do 1.36 + get_file="NotoSerif-$variant.ttf" 1.37 + save_file="NotoSerif-$variant-$VERSION.ttf" 1.38 + url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file" 1.39 + [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url 1.40 + [ -e "$SRC/$save_file" ] || exit 1 1.41 + cp "$SRC/$save_file" "$src/$get_file" 1.42 + done 1.43 + 1.44 + # Install 1.45 + 1.46 + f=$install/usr/share/fonts/truetype/noto 1.47 + mkdir -p $f 1.48 + cp -a $src/*.ttf $f 1.49 +} 1.50 + 1.51 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.52 +genpkg_rules() 1.53 +{ 1.54 + cook_copy_files *.ttf 1.55 +}