# SliTaz package receipt. PACKAGE="noto-mono" VERSION="1.00" COMMIT="5329592" CATEGORY="fonts" SHORT_DESC="Noto Mono TrueType font" MAINTAINER="al.bobylev@gmail.com" LICENSE="OFL" WEB_SITE="http://www.google.com/get/noto/" font=Regular TARBALL="NotoMono-$font-$VERSION.ttf" WGET_URL="https://github.com/googlei18n/noto-fonts/raw/$COMMIT/hinted/NotoMono-$font.ttf" TAGS="font" # What is the latest version available today? current_version() { wget -O - https://github.com/googlei18n/noto-fonts/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { # The Noto font web site don't provides downloads of "Noto Mono". # Github project provides versioned downloads, but only in form of # "all in one" huge file. # Solution: download individual versioned font files from Github project. # This commit "5329592" introduced "NotoMono-*" font version "1.00": # https://github.com/googlei18n/noto-fonts/commit/5329592b9d0fee9fc8e462b328884a011811ff2c f=$install/usr/share/fonts/truetype/noto mkdir -p $f cp -a $src/*.ttf $f/NotoMono-Regular.ttf } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_files *.ttf }