aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/noto.az
blob: 14a09f7441065d7fabf20f81f53cc153566b065d (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
package noto {
	description = "a typeface for the world";
	website = "https://fonts.google.com/noto";
	anitya = 10671;

	version# = "2026.11.01";
	source = remoteGitHub {
		suffix = "notofonts/notofonts.github.io";
		tag = "noto-monthly-release-"+version;
		checksum = "0AvgvVr9KpKcySfzLZZMaaKnYQGetIUeB6WofbCja1C4XvaiiES_Rw8sihgRH8u6";
	};

	enterSource = true;
	exec = generic {
		chdir = false;
		build = `
[ ! -d `+prefix+`/share/fonts ]
DEST=`+prefix+`/share/fonts/noto
for font in $(ls -d fonts/*/); do
	if [[ -d "$font"unhinted/variable-ttf ]]; then
		install -m444 -vDt "$DEST" "$font"unhinted/variable-ttf/*.ttf
	elif [[ -d "$font"unhinted/otf ]]; then
		install -m444 -vDt "$DEST" "$font"unhinted/otf/*.otf
	else
		install -m444 -vDt "$DEST" "$font"unhinted/ttf/*.ttf
	fi
done
rename -v 's/\[.*\]//' $DEST/*
fc-cache -vf
`;
		install = `
mkdir -p /work`+prefix+`/share
mv `+prefix+`/share/fonts /work`+prefix+`/share
`;
	};

	tools = [
		rename,
		fontconfig,
	];
	cross = nil;
}