wok-next view noto-mono/receipt @ rev 20632

gegl: fix packing
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 27 10:53:56 2018 +0300 (2018-04-27)
parents f463de72afe3
children 4e6503d7a19f
line source
1 # SliTaz package receipt v2.
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/"
12 compile_rules() {
13 # The Noto font web site don't provides downloads of "Noto Mono".
15 # Github project provides versioned downloads, but only in form of
16 # "all in one" huge file.
18 # Solution: download individual versioned font files from Github project.
19 # This commit "5329592" introduced "NotoMono-*" font version "1.00":
20 # https://github.com/googlei18n/noto-fonts/commit/5329592b9d0fee9fc8e462b328884a011811ff2c
22 mkdir -p $src
23 for font in Regular; do
24 get_file="NotoMono-$font.ttf"
25 save_file="NotoMono-$font-$VERSION.ttf"
26 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
27 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
28 [ -e "$SRC/$save_file" ] || exit 1
29 cp "$SRC/$save_file" "$src/$get_file"
30 done
32 f=$install/usr/share/fonts/truetype/noto
33 mkdir -p $f
34 cp -a $src/*.ttf $f
35 }
37 genpkg_rules() {
38 copy *.ttf
39 TAGS="font"
40 }