wok-next view noto-serif/receipt @ rev 20513

A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 21 15:58:17 2018 +0200 (2018-03-21)
parents f463de72afe3
children 4e6503d7a19f
line source
1 # SliTaz package receipt v2.
3 PACKAGE="noto-serif"
4 VERSION="1.06"
5 COMMIT="0af3d5f"
6 CATEGORY="fonts"
7 SHORT_DESC="Noto Serif 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/NotoSerif-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 "0af3d5f" bumped version of "NotoSerif-*" fonts to "1.06"
25 # (NotoSerif-Italic was bumped to 1.07):
26 # https://github.com/googlei18n/noto-fonts/commit/0af3d5fd0830eaeb1825044b2f4c04125eacf08f
28 mkdir -p $src
29 for variant in Regular Bold Italic BoldItalic; do
30 get_file="NotoSerif-$variant.ttf"
31 save_file="NotoSerif-$variant-$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 }