summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurome <hunt31999@gmail.com>2025-07-03 16:25:16 +0900
committerHilton Chain <hako@ultrarare.space>2025-07-04 23:38:10 +0800
commite6e526d5824517fff2ed404fbcc6513034fb7351 (patch)
treee12633f533fa09ff7b01efb0465cf49193fa84a4
parent2aeff6072f322678b40c7c49177be0a9dc0e52f7 (diff)
gnu: font-plangothic: Update to 2.9.5779.
* gnu/packages/fonts.scm (font-plangothic): Update to 2.9.5779. [origin]: Switch to git-fetch. [build-system]: Switch to copy-build-system. [outputs]: Add "ttf" and "woff". [home-page]: Fix the redirect link. Change-Id: I5835932ba9c74abc2c38c1d0d97da1be0602828f Signed-off-by: Hilton Chain <hako@ultrarare.space>
-rw-r--r--gnu/packages/fonts.scm38
1 files changed, 21 insertions, 17 deletions
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index f350540e28..5d9a324a6f 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -3545,29 +3545,33 @@ and FontForge.")
(define-public font-plangothic
(package
(name "font-plangothic")
- (version "1.8.5760")
+ (version "2.9.5779")
(source
+ ;; Use git-fetch because releases are constantly updated and the hashes
+ ;; change.
(origin
- (method url-fetch)
- (uri (string-append
- "https://github.com/Fitzgerald-Porthmouth-Koenigsegg/"
- "Plangothic-Project/releases/download/V"
- version "/Plangothic.ttc"))
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append
+ "https://github.com/Fitzgerald-Porthmouth-Koenigsegg/"
+ "Plangothic_Project"))
+ (commit (string-append "V" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0ha2hcgy95ibmjk8lqfz0ihfc09swrzz3grlchma7qrwyxqbwpc0"))))
- (build-system trivial-build-system)
+ (base32 "0mx7aqrdl1m5y5h37xqq7hxv1z3gdfa276hjxyaaspcwlkbw0s4g"))))
+ ;; This font has both OpenType and TrueType in .ttc format, and the font
+ ;; build system automatically identifies .ttc files as TrueType, so classify
+ ;; them manually.
+ (build-system copy-build-system)
+ (outputs '("out" "ttf" "woff"))
(arguments
(list
- #:modules '((guix build utils))
- #:builder
- #~(let* ((out #$output)
- (dest (string-append out "/share/fonts/truetype")))
- (use-modules (guix build utils))
- (mkdir-p dest)
- (copy-file #$(package-source this-package)
- (string-append dest "/Plangothic.ttc")))))
+ #:install-plan
+ #~'(("fonts/otf/Plangothic.ttc" "share/fonts/opentype/" #:output "out" )
+ ("fonts/static/Plangothic.ttc" "share/fonts/truetype/" #:output "ttf" )
+ ("fonts/web" "share/fonts/web" #:output "woff"))))
(home-page
- "https://github.com/Fitzgerald-Porthmouth-Koenigsegg/Plangothic-Project")
+ "https://github.com/Fitzgerald-Porthmouth-Koenigsegg/Plangothic_Project")
(synopsis "Sans font covers most CJK unified ideograph characters")
(description "Plangothic is a sans font based on Source Han Sans,
modified to cover most CJK unified ideograph characters.")