wok-next annotate noto-mono/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
rev   line source
al@20513 1 # SliTaz package receipt v2.
al@19307 2
al@19307 3 PACKAGE="noto-mono"
al@19307 4 VERSION="1.00"
al@19307 5 COMMIT="5329592"
al@19307 6 CATEGORY="fonts"
al@19307 7 SHORT_DESC="Noto Mono TrueType font"
al@19307 8 MAINTAINER="al.bobylev@gmail.com"
al@19307 9 LICENSE="OFL"
al@19307 10 WEB_SITE="http://www.google.com/get/noto/"
al@19307 11
al@20513 12 compile_rules() {
al@19307 13 # The Noto font web site don't provides downloads of "Noto Mono".
al@19307 14
al@19307 15 # Github project provides versioned downloads, but only in form of
al@19307 16 # "all in one" huge file.
al@19307 17
al@19307 18 # Solution: download individual versioned font files from Github project.
al@19307 19 # This commit "5329592" introduced "NotoMono-*" font version "1.00":
al@19307 20 # https://github.com/googlei18n/noto-fonts/commit/5329592b9d0fee9fc8e462b328884a011811ff2c
al@19307 21
al@19307 22 mkdir -p $src
al@19307 23 for font in Regular; do
al@19307 24 get_file="NotoMono-$font.ttf"
al@19307 25 save_file="NotoMono-$font-$VERSION.ttf"
al@19307 26 url="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/$get_file"
al@19307 27 [ -e "$SRC/$save_file" ] || wget -T 30 -O "$SRC/$save_file" $url
al@19307 28 [ -e "$SRC/$save_file" ] || exit 1
al@19307 29 cp "$SRC/$save_file" "$src/$get_file"
al@19307 30 done
al@19307 31
al@19307 32 f=$install/usr/share/fonts/truetype/noto
al@19307 33 mkdir -p $f
al@19307 34 cp -a $src/*.ttf $f
al@19307 35 }
al@19307 36
al@20513 37 genpkg_rules() {
al@19783 38 copy *.ttf
al@20513 39 TAGS="font"
al@19307 40 }