SUMMARY="The Noto font for CJK languages"
DESCRIPTION="The Noto fonts have superseded the Droid fonts, which were \
originally designed for the use in Google's Android. Noto's aim is to be a \
free for everyone, with beautiful glyphs for all languages, looking good \
especially when multiple styles and weights and even languages are mixed on \
a page.

This package supports Japanese, Korean and simple/traditional Chinese.
Included are various weights and two 'monospaced' typefaces ('regular' and \
'bold')."
HOMEPAGE="https://www.google.com/get/noto/"
COPYRIGHT="2012 Google Inc."
LICENSE="SIL Open Font License v1.1"
REVISION="2"
baseURL="https://raw.githubusercontent.com/googlei18n/noto-cjk"
srcGitRev="f36eda03dfa5582a6d49abbfb5c83d0209584158"
# Japanese
SOURCE_URI="$baseURL/$srcGitRev/NotoSansCJKjp-Black.otf#noarchive"
CHECKSUM_SHA256="30bd064f624484ddc4ed77e2baab834b762078b8c3140a406eb7c42436beb7c3"
SOURCE_DIR=""
SOURCE_URI_2="$baseURL/$srcGitRev/NotoSansCJKjp-Bold.otf#noarchive"
CHECKSUM_SHA256_2="9ca911f033c616162bc2d2f1d61c6739df8bc7a9bd027df0ed57c96029b33a7a"
SOURCE_URI_3="$baseURL/$srcGitRev/NotoSansCJKjp-DemiLight.otf#noarchive"
CHECKSUM_SHA256_3="8c7692687ac032cd98cfbcd14392d87d301a766ebd1317550542f7826775ee46"
SOURCE_URI_4="$baseURL/$srcGitRev/NotoSansCJKjp-Light.otf#noarchive"
CHECKSUM_SHA256_4="8a27ee3bccde01b4d084ff2c51f34e37f7f420fda52a2c035fa4a2f4cfb3fbac"
SOURCE_URI_5="$baseURL/$srcGitRev/NotoSansCJKjp-Medium.otf#noarchive"
CHECKSUM_SHA256_5="bcda0bcc22bab28ea4fedae800bfbf9ec76d71cc3b9f851779a35b7e438a839d"
SOURCE_URI_6="$baseURL/$srcGitRev/NotoSansCJKjp-Regular.otf#noarchive"
CHECKSUM_SHA256_6="f18253affd968c8ea592d8df6d84b1d4c5d3a46d267e53a1f6749e6c4f76a23d"
SOURCE_URI_7="$baseURL/$srcGitRev/NotoSansCJKjp-Thin.otf#noarchive"
CHECKSUM_SHA256_7="d6d322494b97484247fb7d9deaaeb8593bac81eedfdc627968414b2dc6295a94"
SOURCE_URI_8="$baseURL/$srcGitRev/NotoSansMonoCJKjp-Bold.otf#noarchive"
CHECKSUM_SHA256_8="206addf6fada3766e9fee5d03e51d3be3e683a2e730cf6baec5460ce4c3c18dc"
SOURCE_URI_9="$baseURL/$srcGitRev/NotoSansMonoCJKjp-Regular.otf#noarchive"
CHECKSUM_SHA256_9="4b97c72f9e7d5ebaa83ece66968908027dd30c3e54f468ead74731ab0508bf45"
# Korean
SOURCE_URI_10="$baseURL/$srcGitRev/NotoSansCJKkr-Black.otf#noarchive"
CHECKSUM_SHA256_10="089a475a2c348daa81cdd8c9261036841f5711f6cce9e0932beb6fd9e348c94d"
SOURCE_URI_11="$baseURL/$srcGitRev/NotoSansCJKkr-Bold.otf#noarchive"
CHECKSUM_SHA256_11="f14686e17455ba0b0f691fa58c6ddd8b146544bae2f1729e495dbb51043d424b"
SOURCE_URI_12="$baseURL/$srcGitRev/NotoSansCJKkr-DemiLight.otf#noarchive"
CHECKSUM_SHA256_12="6913976f7c49070ca536c2f0a9e2e33dacd904311e38b1d8770996a0520e25b7"
SOURCE_URI_13="$baseURL/$srcGitRev/NotoSansCJKkr-Light.otf#noarchive"
CHECKSUM_SHA256_13="fa383799c2a97b8a38d8e0e74fbeed94935fb4d4ab6acc9b31821ad03715e851"
SOURCE_URI_14="$baseURL/$srcGitRev/NotoSansCJKkr-Medium.otf#noarchive"
CHECKSUM_SHA256_14="4bf8e8b95b40747ddb0c3e210a07efd1cc75a4b227ebc0320eb179c8a5594ce1"
SOURCE_URI_15="$baseURL/$srcGitRev/NotoSansCJKkr-Regular.otf#noarchive"
CHECKSUM_SHA256_15="d4be2f9ead6e512cb3da51a339ecd7ed2684d2474b376181be9389cbedd85a38"
SOURCE_URI_16="$baseURL/$srcGitRev/NotoSansCJKkr-Thin.otf#noarchive"
CHECKSUM_SHA256_16="2cd8ed727c39181c9b2c3948ae56ea55d014290b14de6d3534e1e2c456d6dde3"
SOURCE_URI_17="$baseURL/$srcGitRev/NotoSansMonoCJKkr-Bold.otf#noarchive"
CHECKSUM_SHA256_17="0720bdc4d06d0314380fe74646effc16effba7d4698231b7eeed1e1460cb989b"
SOURCE_URI_18="$baseURL/$srcGitRev/NotoSansMonoCJKkr-Regular.otf#noarchive"
CHECKSUM_SHA256_18="509b1a3aec34c02f86d1b73cc1aa9594b863142021e6441af407dcb4a7cf9029"
# Simple Chinese
SOURCE_URI_19="$baseURL/$srcGitRev/NotoSansCJKsc-Black.otf#noarchive"
CHECKSUM_SHA256_19="4f64a0adc660f0066baf25a361cb5f2206952d3e71d05dcade25088c89857c4d"
SOURCE_URI_20="$baseURL/$srcGitRev/NotoSansCJKsc-Bold.otf#noarchive"
CHECKSUM_SHA256_20="9cd6c106d54cec938405ae19388cb4bc685ad2ff0270d03358bf61aa67e1ccb9"
SOURCE_URI_21="$baseURL/$srcGitRev/NotoSansCJKsc-DemiLight.otf#noarchive"
CHECKSUM_SHA256_21="4f9015dfba78ae3e0b5c307e71731dabd075eb10b19183af8cb73caa27a830eb"
SOURCE_URI_22="$baseURL/$srcGitRev/NotoSansCJKsc-Light.otf#noarchive"
CHECKSUM_SHA256_22="9ebc2050fc73480c2806df9d2ac35dd5cec2ad67d48a7d8c8d4df9378c25294c"
SOURCE_URI_23="$baseURL/$srcGitRev/NotoSansCJKsc-Medium.otf#noarchive"
CHECKSUM_SHA256_23="0d01ee04b015315b457dfacdd3442e305d5bb183a9f355c0afda501f6fef39c6"
SOURCE_URI_24="$baseURL/$srcGitRev/NotoSansCJKsc-Regular.otf#noarchive"
CHECKSUM_SHA256_24="1652500938055a232cfbfa321de6ebaadfc5635dd9f75e369bc991d14a6512dd"
SOURCE_URI_25="$baseURL/$srcGitRev/NotoSansCJKsc-Thin.otf#noarchive"
CHECKSUM_SHA256_25="53850c9e3d21f83b249b1acaad701156d4053f61f52cda7169c420c9072680c9"
SOURCE_URI_26="$baseURL/$srcGitRev/NotoSansMonoCJKsc-Bold.otf#noarchive"
CHECKSUM_SHA256_26="9ccb57035e388a53f9fb6c1a4385b83e824ff6b781dbe55cf0657ae2205247a0"
SOURCE_URI_27="$baseURL/$srcGitRev/NotoSansMonoCJKsc-Regular.otf#noarchive"
CHECKSUM_SHA256_27="2b1dbdc50df666a00c50ecd77377e2394c6babd35a71e37505ab411ff55c7906"
# Traditional Chinese
SOURCE_URI_28="$baseURL/$srcGitRev/NotoSansCJKtc-Black.otf#noarchive"
CHECKSUM_SHA256_28="203cf8985ba88adbe5e315f931ca61b9f053c5e5f358bf0c91576eb380597ac5"
SOURCE_URI_29="$baseURL/$srcGitRev/NotoSansCJKtc-Bold.otf#noarchive"
CHECKSUM_SHA256_29="977833121efae44b1c2115282724383b3201bdc104064d7bb2c1c92da928aafc"
SOURCE_URI_30="$baseURL/$srcGitRev/NotoSansCJKtc-DemiLight.otf#noarchive"
CHECKSUM_SHA256_30="4afca0a8f81a4c149d307a24c44403fe23c5e84e9fa745ac9f0d9d9a6097fede"
SOURCE_URI_31="$baseURL/$srcGitRev/NotoSansCJKtc-Light.otf#noarchive"
CHECKSUM_SHA256_31="baf3e2718c919472af2b2c107d79d71abf4ce6fb2bd46e45f2e2b6acf686f83c"
SOURCE_URI_32="$baseURL/$srcGitRev/NotoSansCJKtc-Medium.otf#noarchive"
CHECKSUM_SHA256_32="07aaf9190313301b18bda707c4db7ac75eaae6ef222eb5c38f97ed78700fd4f2"
SOURCE_URI_33="$baseURL/$srcGitRev/NotoSansCJKtc-Regular.otf#noarchive"
CHECKSUM_SHA256_33="f57e46120a3dd025ac993801981849622405d1359b32093b1f046490f7885711"
SOURCE_URI_34="$baseURL/$srcGitRev/NotoSansCJKtc-Thin.otf#noarchive"
CHECKSUM_SHA256_34="a78bd02326203aad6efcd1bd51ba8ae20db8252f2d4244180178a7e42a626d3c"
SOURCE_URI_35="$baseURL/$srcGitRev/NotoSansMonoCJKtc-Bold.otf#noarchive"
CHECKSUM_SHA256_35="a7d6d87c73884e666ddb847e0a4992a58f85b56f4f0064842d8288730083b44c"
SOURCE_URI_36="$baseURL/$srcGitRev/NotoSansMonoCJKtc-Regular.otf#noarchive"
CHECKSUM_SHA256_36="bce991d5a4132bd389b899a7c654fe50fe7ec9acedd93f47e9d77f4a728dacff"

ARCHITECTURES="any"
DISABLE_SOURCE_PACKAGE="yes"

# noto_sans_cjk-$portVersion-any.hpkg is intentionally empty and can be removed.
PROVIDES="
	noto_sans_cjk=$portVersion	# empty. ToDo: prevent creating empty hpkg
	"
REQUIRES=""

SUMMARY_jp="The Noto font for CJK languages (default Japanese)"
PROVIDES_jp="
	noto_sans_cjk_jp=$portVersion	# Japanese default
	"
REQUIRES_jp=""

SUMMARY_kr="The Noto font for CJK languages (default Korean)"
PROVIDES_kr="
	noto_sans_cjk_kr=$portVersion	# Korean default
	"
REQUIRES_kr=""

SUMMARY_sc="The Noto font for CJK languages (default Simple Chinese)"
PROVIDES_sc="
	noto_sans_cjk_sc=$portVersion	# Simple Chinese default
	"
REQUIRES_sc=""

SUMMARY_tc="The Noto font for CJK languages (default Traditional Chinese)"
PROVIDES_tc="
	noto_sans_cjk_tc=$portVersion	# Traditional Chinese default
	"
REQUIRES_tc=""

BUILD_REQUIRES=""
BUILD_PREREQUIRES=""

BUILD()
{
	true
}

INSTALL()
{
	FONTDIR=$fontsDir/otfonts
	mkdir -p ${FONTDIR}

	cp ../sources*/*.otf ${FONTDIR}

	packageEntries jp \
		${FONTDIR}/*CJKjp*.otf

	packageEntries kr \
		${FONTDIR}/*CJKkr*.otf

	packageEntries sc \
		${FONTDIR}/*CJKsc*.otf

	packageEntries tc \
		${FONTDIR}/*CJKtc*.otf
}
