wok-6.x annotate noto-serif/receipt @ rev 22561

updated boxbackup-client and boxbackup-server (0.11.1 -> 0.12)
author Hans-G?nter Theisgen
date Sun Jan 05 11:14:45 2020 +0100 (2020-01-05)
parents 03550e87324e
children b569b85b0fb9
rev   line source
al@19307 1 # SliTaz package receipt.
al@19307 2
al@19307 3 PACKAGE="noto-serif"
al@19307 4 VERSION="1.06"
al@19307 5 COMMIT="0af3d5f"
al@19307 6 CATEGORY="fonts"
al@19307 7 SHORT_DESC="Noto Serif TrueType fonts"
al@19307 8 MAINTAINER="al.bobylev@gmail.com"
al@19307 9 LICENSE="OFL"
al@19307 10 WEB_SITE="http://www.google.com/get/noto/"
pascal@22338 11 font=Regular
pascal@22338 12 TARBALL="NotoSerif-$font-$VERSION.ttf"
pascal@22338 13 EXTRA_SOURCE_FILES="NotoSerif-Bold-$VERSION.ttf NotoSerif-Italic-$VERSION.ttf NotoSerif-BoldItalic-$VERSION.ttf"
pascal@22338 14 WGET_URL="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/NotoSerif-$font.ttf"
al@19307 15 TAGS="font"
al@19307 16
al@19307 17 SIBLINGS="noto-serif"
al@19307 18
al@19307 19 # Rules to configure and make the package.
al@19307 20 compile_rules()
al@19307 21 {
al@19307 22 # The Noto font web site provides downloads:
al@19307 23 # https://noto-website-2.storage.googleapis.com/pkgs/NotoSerif-hinted.zip
al@19307 24 # But these files are not versioned, so we never know which version we are
al@19307 25 # currently to package.
al@19307 26
al@19307 27 # In other hand, Github project provides versioned downloads, but only in
al@19307 28 # form of "all in one" huge file.
al@19307 29
al@19307 30 # Solution: download individual versioned font files from Github project.
al@19307 31 # This commit "0af3d5f" bumped version of "NotoSerif-*" fonts to "1.06"
al@19307 32 # (NotoSerif-Italic was bumped to 1.07):
al@19307 33 # https://github.com/googlei18n/noto-fonts/commit/0af3d5fd0830eaeb1825044b2f4c04125eacf08f
al@19307 34
pascal@22338 35 mv $TARBALL NotoSerif-Regular.ttf
pascal@22338 36 for font in Bold Italic BoldItalic; do
pascal@22338 37 get_file="NotoSerif-$font.ttf"
pascal@22338 38 save_file="NotoSerif-$font-$VERSION.ttf"
al@19307 39 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
al@19307 40 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
al@19307 41 [ -e "$SRC/$save_file" ] || exit 1
al@19307 42 cp "$SRC/$save_file" "$src/$get_file"
al@19307 43 done
al@19307 44
al@19307 45 # Install
al@19307 46
al@19307 47 f=$install/usr/share/fonts/truetype/noto
al@19307 48 mkdir -p $f
al@19307 49 cp -a $src/*.ttf $f
al@19307 50 }
al@19307 51
al@19307 52 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19307 53 genpkg_rules()
al@19307 54 {
al@19307 55 cook_copy_files *.ttf
al@19307 56 }