wok-6.x annotate noto-sans/receipt @ rev 25538
get-java8-jre: get version 8u361 by default
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 03 17:41:58 2023 +0100 (20 months ago) |
parents | ba1e68274f76 |
children |
rev | line source |
---|---|
al@19307 | 1 # SliTaz package receipt. |
al@19307 | 2 |
al@19307 | 3 PACKAGE="noto-sans" |
al@19307 | 4 VERSION="1.06" |
al@19307 | 5 COMMIT="ad153f5" |
al@19307 | 6 CATEGORY="fonts" |
al@19307 | 7 SHORT_DESC="Noto Sans 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="NotoSans-$font-$VERSION.ttf" |
pascal@22338 | 13 EXTRA_SOURCE_FILES="NotoSans-Bold-$VERSION.ttf NotoSans-Italic-$VERSION.ttf NotoSans-BoldItalic-$VERSION.ttf" |
pascal@22338 | 14 WGET_URL="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/NotoSans-$font.ttf" |
al@19307 | 15 TAGS="font" |
al@19307 | 16 |
al@19307 | 17 SIBLINGS="noto-serif" |
al@19307 | 18 |
pascal@24308 | 19 # What is the latest version available today? |
pascal@24308 | 20 current_version() |
pascal@24308 | 21 { |
pascal@24308 | 22 wget -O - https://github.com/googlei18n/noto-fonts/releases 2>/dev/null | \ |
pascal@24308 | 23 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 24 } |
pascal@24308 | 25 |
al@19307 | 26 # Rules to configure and make the package. |
al@19307 | 27 compile_rules() |
al@19307 | 28 { |
al@19307 | 29 # The Noto font web site provides downloads: |
al@19307 | 30 # https://noto-website-2.storage.googleapis.com/pkgs/NotoSans-hinted.zip |
al@19307 | 31 # But these files are not versioned, so we never know which version we are |
al@19307 | 32 # currently to package. |
al@19307 | 33 |
al@19307 | 34 # In other hand, Github project provides versioned downloads, but only in |
al@19307 | 35 # form of "all in one" huge file. |
al@19307 | 36 |
al@19307 | 37 # Solution: download individual versioned font files from Github project. |
al@19307 | 38 # This commit "ad153f5" bumped version of "NotoSans-*" fonts to "1.06": |
al@19307 | 39 # https://github.com/googlei18n/noto-fonts/commit/ad153f5a14c838afb16c83f0a02784c7605f1e21 |
al@19307 | 40 |
pascal@22338 | 41 mv $TARBALL NotoSans-Regular.ttf |
pascal@22338 | 42 for font in Bold Italic BoldItalic; do |
al@19307 | 43 get_file="NotoSans-$font.ttf" |
al@19307 | 44 save_file="NotoSans-$font-$VERSION.ttf" |
al@19307 | 45 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file" |
al@19307 | 46 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url |
al@19307 | 47 [ -e "$SRC/$save_file" ] || exit 1 |
al@19307 | 48 cp "$SRC/$save_file" "$src/$get_file" |
al@19307 | 49 done |
al@19307 | 50 |
al@19307 | 51 # Install |
al@19307 | 52 |
al@19307 | 53 f=$install/usr/share/fonts/truetype/noto |
al@19307 | 54 mkdir -p $f |
al@19307 | 55 cp -a $src/*.ttf $f |
al@19307 | 56 } |
al@19307 | 57 |
al@19307 | 58 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19307 | 59 genpkg_rules() |
al@19307 | 60 { |
al@19307 | 61 cook_copy_files *.ttf |
al@19307 | 62 } |