[bug#77449] gnu: font-libre-franklin: Update to 1.502

Message ID 20250402070000.523-1-hunt31999@gmail.com
State New
Headers
Series [bug#77449] gnu: font-libre-franklin: Update to 1.502 |

Commit Message

Kurome April 2, 2025, 6:56 a.m. UTC
  Also, legacy directory was added in this repo, so I modified this package so that it does
not install legacy fonts.

Change-Id: If8f57318f7532e0855dc5387e75bf49b92531f64
---
 gnu/packages/fonts.scm | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)
  

Patch

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 9b329b3f37..db9739ef74 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -671,11 +671,11 @@  (define-public font-libertinus
     (license license:silofl1.1)))
 
 (define-public font-libre-franklin
-  (let ((commit "bfc61d6e403771c2e90aa6e0bd54975633974fb2")
-        (revision "0"))
+  (let ((commit "0022627ebb2a582327569ee45af5d0d9ef31dfea")
+        (revision "1"))
     (package
       (name "font-libre-franklin")
-      (version (git-version "1.015" revision commit))
+      (version (git-version "1.502" revision commit))
       (source
        (origin
          (method git-fetch)
@@ -684,9 +684,19 @@  (define-public font-libre-franklin
                (commit commit)))
          (file-name (git-file-name name version))
          (sha256
-          (base32
-           "07rm9fkhm8ckxpaj0zixl4vgzmj6bj4xzbaqm5hngdjds1bjv1ls"))))
+          (base32 "1kfipv9vfivgn1789b9yc6r0l31r6l02nz06icw99zvmfcjbpzf0"))))
       (build-system font-build-system)
+      (arguments
+       (list
+        #:phases
+        #~(modify-phases %standard-phases
+            ;; To avoid installing legacy fonts
+            (add-before 'install 'chdir
+              (lambda _
+                (chdir "fonts")))
+            (add-after 'install 'chdir-back
+              (lambda _
+                (chdir ".."))))))
       (home-page "https://fonts.google.com/specimen/Libre+Franklin")
       (synopsis "Font family based on Franklin Gothic")
       (description