aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-06-24 10:45:01 +0900
committerOphestra <cat@gensokyo.uk>2026-06-24 10:45:01 +0900
commit6210c9f2726e3fc84c81af5df34c2a43de279637 (patch)
tree3dfacf7427398023cdcd98e1d160fa535db5bbcc /internal
parentc2038fa925a12aaa90c2a81be40dab8919d7f447 (diff)
internal/rosa/package: noto
Internationalisation is required anyway, so just package the entire noto fonts. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/package/noto.az32
1 files changed, 32 insertions, 0 deletions
diff --git a/internal/rosa/package/noto.az b/internal/rosa/package/noto.az
new file mode 100644
index 00000000..d010ef1b
--- /dev/null
+++ b/internal/rosa/package/noto.az
@@ -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 ];
+}