summaryrefslogtreecommitdiff
path: root/user/ttf-noto/APKBUILD
blob: 94a87560bd2398ffd7f4503eadc660b57dcb58af (plain) (blame)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=ttf-noto
pkgver=20220420
_commit=c8729a9e61b2a54a9d2b4c61a82d4d93213bd6e3
pkgrel=0
pkgdesc="Noto font family"
url="https://www.google.com/get/noto/"
arch="noarch"
options="!check"  # how do you test a font?
license="OFL-1.1"
depends="fontconfig"
makedepends=""
# added fontconfig configuration from:
# https://github.com/bohoomil/fontconfig-ultimate/tree/master/fontconfig_patches/fonts-settings
source="noto-${pkgver}.tar.gz::https://github.com/googlefonts/noto-fonts/archive/${_commit}.tar.gz
	40-noto-arabic.conf
	45-noto-sans.conf
	45-noto-serif.conf
	90-tt-noto-sans.conf
	90-tt-noto-serif.conf"
builddir="$srcdir"/noto-fonts-$_commit

package() {
	mkdir -p "$pkgdir"/usr/share/fonts/$pkgname/
	mkdir -p "$pkgdir"/etc/fonts/conf.d/
	# FIXME: no-clobber is a kludge to get past these duplicate-named fonts:
	# $ find . -type f -name "*.ttf" | cut -d/ -f3 | sort | uniq -d | while read k; do find . -type f -name "${k}"; done | sort
	# ./NotoSansTifinagh/NotoSansTifinaghAPT-Regular.ttf
	# ./NotoSansTifinagh/NotoSansTifinaghAdrar-Regular.ttf
	# ./NotoSansTifinagh/NotoSansTifinaghAgrawImazighen-Regular.ttf
	# ./NotoSansTifinagh/NotoSansTifinaghAhaggar-Regular.ttf
	# ./NotoSansTifinagh/NotoSansTifinaghAir-Regular.ttf
	# ./NotoSansTifinagh/NotoSansTifinaghAzawagh-Regular.ttf
	# ./NotoSansTifinagh/NotoSansTifinaghGhat-Regular.ttf
	# ./NotoSansTifinagh/NotoSansTifinaghHawad-Regular.ttf
	# ./NotoSansTifinagh/NotoSansTifinaghRhissaIxa-Regular.ttf
	# ./NotoSansTifinagh/NotoSansTifinaghSIL-Regular.ttf
	# ./NotoSansTifinagh/NotoSansTifinaghTawellemmet-Regular.ttf
	# ./NotoSansTifinaghAPT/NotoSansTifinaghAPT-Regular.ttf
	# ./NotoSansTifinaghAdrar/NotoSansTifinaghAdrar-Regular.ttf
	# ./NotoSansTifinaghAgrawImazighen/NotoSansTifinaghAgrawImazighen-Regular.ttf
	# ./NotoSansTifinaghAhaggar/NotoSansTifinaghAhaggar-Regular.ttf
	# ./NotoSansTifinaghAir/NotoSansTifinaghAir-Regular.ttf
	# ./NotoSansTifinaghAzawagh/NotoSansTifinaghAzawagh-Regular.ttf
	# ./NotoSansTifinaghGhat/NotoSansTifinaghGhat-Regular.ttf
	# ./NotoSansTifinaghHawad/NotoSansTifinaghHawad-Regular.ttf
	# ./NotoSansTifinaghRhissaIxa/NotoSansTifinaghRhissaIxa-Regular.ttf
	# ./NotoSansTifinaghSIL/NotoSansTifinaghSIL-Regular.ttf
	# ./NotoSansTifinaghTawellemmet/NotoSansTifinaghTawellemmet-Regular.ttf
	cp -n "$builddir"/hinted/ttf/*/*.ttf "$pkgdir"/usr/share/fonts/$pkgname/
	cp "$srcdir"/*.conf "$pkgdir"/etc/fonts/conf.d/
}

sha512sums="8d9a2b32bb49e4dc2e341141322856bd7da337de7176ecbb04a742e483f00d283afa33e2c601d0ee78fb4677166affdf9ac83083bda9d5b82e495a8986ece8c0  noto-20220420.tar.gz
47396e7a4e5dfb38d3df6dff0b4584757cc132f393d3410463eefc3dbb5f2af592a6b07a4c098d8c594be03f23e4eb84b76b672245fe0cea816927cf535ea270  40-noto-arabic.conf
748dfecbc3ad5c3750764e6ae889bbc4e614885237bb91ece138d2dc5014fd41ea6361b32982cfa4e76c7c092e0b93f90cccd0b92acbd408b7c302c44c1523e6  45-noto-sans.conf
5059295a1c36c4ec4aae61443221ee74876315127895da0773e4feb77e70cfc4b7923dde8f6510d6cf9de019082e15f1f4fd4b53f0bce4d2a681541f2de587df  45-noto-serif.conf
e5d252e4ee265f9cc7a91eea0e0f8c74315a60cbce606860e0f9e722eb9331f8d87d541dd715bef46bdb4e637bab0344f2fd98cc0424e7cfa17e588efa07eb33  90-tt-noto-sans.conf
4f8760f7eeae99050a3b8ac73f4eeeb5ad32e9e5224034292e3ecdc260ffcc92f3ae45aa35e9f86905fce4ff909bb3263e25d8f4fe56dacba2fb3de2107e314f  90-tt-noto-serif.conf"