wok-next view noto-sans/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | f463de72afe3 |
children | 4e6503d7a19f |
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/"
12 SIBLINGS="noto-serif"
14 compile_rules() {
15 # The Noto font web site provides downloads:
16 # https://noto-website-2.storage.googleapis.com/pkgs/NotoSans-hinted.zip
17 # But these files are not versioned, so we never know which version we are
18 # currently to package.
20 # In other hand, Github project provides versioned downloads, but only in
21 # form of "all in one" huge file.
23 # Solution: download individual versioned font files from Github project.
24 # This commit "ad153f5" bumped version of "NotoSans-*" fonts to "1.06":
25 # https://github.com/googlei18n/noto-fonts/commit/ad153f5a14c838afb16c83f0a02784c7605f1e21
27 mkdir -p $src
28 for font in Regular Bold Italic BoldItalic; do
29 get_file="NotoSans-$font.ttf"
30 save_file="NotoSans-$font-$VERSION.ttf"
31 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
32 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
33 [ -e "$SRC/$save_file" ] || exit 1
34 cp "$SRC/$save_file" "$src/$get_file"
35 done
37 # Install
39 f=$install/usr/share/fonts/truetype/noto
40 mkdir -p $f
41 cp -a $src/*.ttf $f
42 }
44 genpkg_rules() {
45 copy *.ttf
46 TAGS="font"
47 }