* [ptxdist] [PATCH] xorg-font-ttf-nanum-gothic: New package
@ 2026-07-24 6:25 Thorsten Scherer
0 siblings, 0 replies; only message in thread
From: Thorsten Scherer @ 2026-07-24 6:25 UTC (permalink / raw)
To: ptxdist; +Cc: Thorsten Scherer
Signed-off-by: Thorsten Scherer <t.scherer@eckelmann.de>
---
rules/xorg-font-ttf-nanum-gothic.in | 10 ++++
rules/xorg-font-ttf-nanum-gothic.make | 74 +++++++++++++++++++++++++++
2 files changed, 84 insertions(+)
create mode 100644 rules/xorg-font-ttf-nanum-gothic.in
create mode 100644 rules/xorg-font-ttf-nanum-gothic.make
diff --git a/rules/xorg-font-ttf-nanum-gothic.in b/rules/xorg-font-ttf-nanum-gothic.in
new file mode 100644
index 000000000000..97ccd4fddaab
--- /dev/null
+++ b/rules/xorg-font-ttf-nanum-gothic.in
@@ -0,0 +1,10 @@
+## SECTION=multimedia_xorg_font_ttf
+
+config XORG_FONT_TTF_NANUM_GOTHIC
+ tristate
+ select XORG_FONTS
+ depends on XORG_FONT_TTF
+ prompt "nanum gothic"
+ help
+ NanumGothic is a Korean sans-serif font family created by NAVER,
+ covering Hangul, Hanja and Latin glyphs.
diff --git a/rules/xorg-font-ttf-nanum-gothic.make b/rules/xorg-font-ttf-nanum-gothic.make
new file mode 100644
index 000000000000..c43b5ba54108
--- /dev/null
+++ b/rules/xorg-font-ttf-nanum-gothic.make
@@ -0,0 +1,74 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2026 by Thorsten Scherer <t.scherer@eckelmann.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_XORG_FONT_TTF_NANUM_GOTHIC) += xorg-font-ttf-nanum-gothic
+
+#
+# Paths and names
+#
+XORG_FONT_TTF_NANUM_GOTHIC_VERSION := 20200506
+XORG_FONT_TTF_NANUM_GOTHIC_SHA256 := 157803748198151250a3cf7cb03aef844e408e9c98849dd889e191846aacad4b
+XORG_FONT_TTF_NANUM_GOTHIC := fonts-nanum-$(XORG_FONT_TTF_NANUM_GOTHIC_VERSION)
+XORG_FONT_TTF_NANUM_GOTHIC_SUFFIX := tar.xz
+# upstream (hangeul.naver.com) has no stable URL; use the Debian archived source instead
+XORG_FONT_TTF_NANUM_GOTHIC_URL := https://snapshot.debian.org/archive/debian/20200515T024132Z/pool/main/f/fonts-nanum/fonts-nanum_$(XORG_FONT_TTF_NANUM_GOTHIC_VERSION).orig.$(XORG_FONT_TTF_NANUM_GOTHIC_SUFFIX)
+XORG_FONT_TTF_NANUM_GOTHIC_MD5 := 6b4d390e048d809d4152cea82e5ec6c4
+XORG_FONT_TTF_NANUM_GOTHIC_SOURCE := $(SRCDIR)/$(XORG_FONT_TTF_NANUM_GOTHIC).$(XORG_FONT_TTF_NANUM_GOTHIC_SUFFIX)
+XORG_FONT_TTF_NANUM_GOTHIC_DIR := $(BUILDDIR)/$(XORG_FONT_TTF_NANUM_GOTHIC)
+XORG_FONT_TTF_NANUM_GOTHIC_LICENSE := OFL-1.1
+
+XORG_FONT_TTF_NANUM_GOTHIC_CONF_TOOL := NO
+XORG_FONT_TTF_NANUM_GOTHIC_FONTDIR := $(XORG_FONTDIR)/truetype/nanum
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xorg-font-ttf-nanum-gothic.compile:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+# only the plain Sans-serif weights; the upstream archive also ships
+# Myeongjo/Brush/Pen/BarunGothic/Square variants we don't need here
+$(STATEDIR)/xorg-font-ttf-nanum-gothic.install:
+ @$(call targetinfo)
+ @rm -rf $(XORG_FONT_TTF_NANUM_GOTHIC_PKGDIR)
+ @install -d $(XORG_FONT_TTF_NANUM_GOTHIC_PKGDIR)$(XORG_FONT_TTF_NANUM_GOTHIC_FONTDIR)
+ @install -m 644 \
+ $(XORG_FONT_TTF_NANUM_GOTHIC_DIR)/NanumGothic.ttf \
+ $(XORG_FONT_TTF_NANUM_GOTHIC_DIR)/NanumGothicBold.ttf \
+ $(XORG_FONT_TTF_NANUM_GOTHIC_PKGDIR)$(XORG_FONT_TTF_NANUM_GOTHIC_FONTDIR)
+ @mkfontdir $(XORG_FONT_TTF_NANUM_GOTHIC_PKGDIR)$(XORG_FONT_TTF_NANUM_GOTHIC_FONTDIR)
+ @mkfontscale $(XORG_FONT_TTF_NANUM_GOTHIC_PKGDIR)$(XORG_FONT_TTF_NANUM_GOTHIC_FONTDIR)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xorg-font-ttf-nanum-gothic.targetinstall:
+ @$(call targetinfo)
+ @$(call install_init, xorg-font-ttf-nanum-gothic)
+ @$(call install_fixup, xorg-font-ttf-nanum-gothic,PRIORITY,optional)
+ @$(call install_fixup, xorg-font-ttf-nanum-gothic,SECTION,base)
+ @$(call install_fixup, xorg-font-ttf-nanum-gothic,AUTHOR,"Thorsten Scherer <t.scherer@eckelmann.de>")
+ @$(call install_fixup, xorg-font-ttf-nanum-gothic,DESCRIPTION,missing)
+
+ @$(call install_tree, xorg-font-ttf-nanum-gothic, 0, 0, -, /usr)
+
+ @$(call install_finish, xorg-font-ttf-nanum-gothic)
+ @$(call touch)
+
+# vim: syntax=make
--
2.53.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-24 6:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-24 6:25 [ptxdist] [PATCH] xorg-font-ttf-nanum-gothic: New package Thorsten Scherer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox