wok-next view noto-sans/receipt @ rev 21016
Small updates; mdocml -> mandoc
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Oct 15 16:44:45 2018 +0300 (2018-10-15) |
parents | d43bf7aae921 |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="noto-sans"
4 VERSION="1.06"
5 COMMIT="ad153f5"
6 CATEGORY="fonts"
7 SHORT_DESC="Noto Sans TrueType fonts"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="OFL"
10 WEB_SITE="http://www.google.com/get/noto/"
11 REPOLOGY="fonts:noto"
13 SIBLINGS="noto-serif"
15 compile_rules() {
16 # The Noto font web site provides downloads:
17 # https://noto-website-2.storage.googleapis.com/pkgs/NotoSans-hinted.zip
18 # But these files are not versioned, so we never know which version we are
19 # currently to package.
21 # In other hand, Github project provides versioned downloads, but only in
22 # form of "all in one" huge file.
24 # Solution: download individual versioned font files from Github project.
25 # This commit "ad153f5" bumped version of "NotoSans-*" fonts to "1.06":
26 # https://github.com/googlei18n/noto-fonts/commit/ad153f5a14c838afb16c83f0a02784c7605f1e21
28 mkdir -p $src
29 for font in Regular Bold Italic BoldItalic; do
30 get_file="NotoSans-$font.ttf"
31 save_file="NotoSans-$font-$VERSION.ttf"
32 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
33 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
34 [ -e "$SRC/$save_file" ] || exit 1
35 cp "$SRC/$save_file" "$src/$get_file"
36 done
38 # Install
40 f=$install/usr/share/fonts/truetype/noto
41 mkdir -p $f
42 cp -a $src/*.ttf $f
43 }
45 genpkg_rules() {
46 copy *.ttf
47 TAGS="font"
48 }