internal/rosa/package: noto
Test / Create distribution (push) Successful in 58s
Test / Sandbox (push) Successful in 2m42s
Test / ShareFS (push) Successful in 3m49s
Test / Hakurei (push) Successful in 4m1s
Test / Sandbox (race detector) (push) Successful in 5m33s
Test / Hakurei (race detector) (push) Successful in 6m43s
Test / Flake checks (push) Successful in 1m7s
Test / Create distribution (push) Successful in 58s
Test / Sandbox (push) Successful in 2m42s
Test / ShareFS (push) Successful in 3m49s
Test / Hakurei (push) Successful in 4m1s
Test / Sandbox (race detector) (push) Successful in 5m33s
Test / Hakurei (race detector) (push) Successful in 6m43s
Test / Flake checks (push) Successful in 1m7s
Internationalisation is required anyway, so just package the entire noto fonts. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package noto {
|
||||
description = "a typeface for the world";
|
||||
website = "https://fonts.google.com/noto";
|
||||
anitya = 10671;
|
||||
|
||||
version# = "2026.06.01";
|
||||
source = remoteGitHub {
|
||||
suffix = "notofonts/notofonts.github.io";
|
||||
tag = "noto-monthly-release-"+version;
|
||||
checksum = "QpCYYssOY-OIFKn0_K_7JG7Ij2VDbIkccWrWTC4db1ZPPE1yZnLrf7Kja-IuB4XS";
|
||||
};
|
||||
|
||||
enterSource = true;
|
||||
exec = generic {
|
||||
inPlace = true;
|
||||
install = `
|
||||
DEST=/work/system/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/*
|
||||
`;
|
||||
};
|
||||
|
||||
inputs = [ rename ];
|
||||
}
|
||||
Reference in New Issue
Block a user