wok diff noto-sans/receipt @ rev 21741

updated qlcplus (4.10.2b -> 4.12.1)
author Hans-G?nter Theisgen
date Fri Jun 14 14:44:41 2019 +0100 (2019-06-14)
parents
children ba1e68274f76
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/noto-sans/receipt	Fri Jun 14 14:44:41 2019 +0100
     1.3 @@ -0,0 +1,51 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="noto-sans"
     1.7 +VERSION="1.06"
     1.8 +COMMIT="ad153f5"
     1.9 +CATEGORY="fonts"
    1.10 +SHORT_DESC="Noto Sans 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/NotoSans-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 "ad153f5" bumped version of "NotoSans-*" fonts to "1.06":
    1.31 +	# https://github.com/googlei18n/noto-fonts/commit/ad153f5a14c838afb16c83f0a02784c7605f1e21
    1.32 +
    1.33 +	mkdir -p $src
    1.34 +	for font in Regular Bold Italic BoldItalic; do
    1.35 +		 get_file="NotoSans-$font.ttf"
    1.36 +		save_file="NotoSans-$font-$VERSION.ttf"
    1.37 +		url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
    1.38 +		[ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
    1.39 +		[ -e "$SRC/$save_file" ] || exit 1
    1.40 +		cp "$SRC/$save_file" "$src/$get_file"
    1.41 +	done
    1.42 +
    1.43 +	# Install
    1.44 +
    1.45 +	f=$install/usr/share/fonts/truetype/noto
    1.46 +	mkdir -p $f
    1.47 +	cp -a $src/*.ttf $f
    1.48 +}
    1.49 +
    1.50 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.51 +genpkg_rules()
    1.52 +{
    1.53 +	cook_copy_files *.ttf
    1.54 +}