aboutsummaryrefslogtreecommitdiffstats
path: root/community/font-noto-cjk/APKBUILD
blob: 818b584bf515b9468f87073b6cf138eea5f400ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=font-noto-cjk
pkgver=0_git20181130
_sha=9326451d9b4f32ec7f8640581c5053cc192039f2
pkgrel=1
pkgdesc="Google's font family that aims to support all the world's languages (cjk)"
url="https://github.com/googlei18n/noto-fonts/"
arch="noarch"
license="OFL-1.1"
depends="fontconfig"
options="!check"
subpackages="$pkgname-extra:_extra"
source="$pkgname-$pkgver.tar.gz::https://github.com/googlei18n/noto-cjk/archive/$_sha.tar.gz"
builddir="$srcdir/noto-cjk-$_sha"

package() {
	mkdir -p "$pkgdir"/usr/share/fonts/noto
	for font in NotoSansCJK-Bold.ttc \
		NotoSansCJK-Regular.ttc \
		NotoSerifCJK-Bold.ttc \
		NotoSerifCJK-Regular.ttc
	do
		install -m644 "$builddir"/"$font" \
			"$pkgdir"/usr/share/fonts/noto/"$font"
	done
}

_extra() {
	mkdir -p "$subpkgdir"/usr/share/fonts/noto
	for font in NotoSansCJK-Black.ttc \
		NotoSansCJK-DemiLight.ttc \
		NotoSansCJK-Light.ttc \
		NotoSansCJK-Medium.ttc \
		NotoSansCJK-Thin.ttc \
		NotoSerifCJK-Black.ttc \
		NotoSerifCJK-ExtraLight.ttc \
		NotoSerifCJK-Light.ttc \
		NotoSerifCJK-Medium.ttc \
		NotoSerifCJK-SemiBold.ttc
	do
		install -m644 "$builddir"/"$font" \
			"$subpkgdir"/usr/share/fonts/noto/"$font"
	done
}

sha512sums="d4578421919d03ecf82627375cfc4b227825af485140b35e2315d17f8ef38d034e0ffdd21fb3aa226c82e9cf587123867d565f93d32f8bf7d754571f0ebf825e  font-noto-cjk-0_git20181130.tar.gz"