wok-6.x view noto-mono/receipt @ rev 20980
amule source modified for cryptopp 8.0.0
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 06 13:37:18 2019 +0100 (2019-03-06) |
parents | |
children | ba1e68274f76 |
line source
1 # SliTaz package receipt.
3 PACKAGE="noto-mono"
4 VERSION="1.00"
5 COMMIT="5329592"
6 CATEGORY="fonts"
7 SHORT_DESC="Noto Mono TrueType font"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="OFL"
10 WEB_SITE="http://www.google.com/get/noto/"
11 TAGS="font"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 # The Noto font web site don't provides downloads of "Noto Mono".
18 # Github project provides versioned downloads, but only in form of
19 # "all in one" huge file.
21 # Solution: download individual versioned font files from Github project.
22 # This commit "5329592" introduced "NotoMono-*" font version "1.00":
23 # https://github.com/googlei18n/noto-fonts/commit/5329592b9d0fee9fc8e462b328884a011811ff2c
25 mkdir -p $src
26 for font in Regular; do
27 get_file="NotoMono-$font.ttf"
28 save_file="NotoMono-$font-$VERSION.ttf"
29 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
30 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
31 [ -e "$SRC/$save_file" ] || exit 1
32 cp "$SRC/$save_file" "$src/$get_file"
33 done
35 f=$install/usr/share/fonts/truetype/noto
36 mkdir -p $f
37 cp -a $src/*.ttf $f
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cook_copy_files *.ttf
44 }