[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30960] [PATCH 1/4] gnu: font-lato: Switch to font-build-system.
From: |
Arun Isaac |
Subject: |
[bug#30960] [PATCH 1/4] gnu: font-lato: Switch to font-build-system. |
Date: |
Tue, 27 Mar 2018 19:44:38 +0530 |
* gnu/packages/fonts.scm (font-lato): Switch to font-build-system.
[source]: Use url-fetch/zipbomb.
---
gnu/packages/fonts.scm | 24 ++----------------------
1 file changed, 2 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index f57d5114a..8ab3cdcf8 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -197,32 +197,12 @@ sans-serif designed for on-screen reading. It is used by
address@hidden")
(name "font-lato")
(version "2.010")
(source (origin
- (method url-fetch)
+ (method url-fetch/zipbomb)
(uri (string-append
"http://www.latofonts.com/download/Lato2OFL.zip"))
(sha256
(base32
"1f5540g0ja1nx3ddd3ywn77xc81ssrxpq8n3gyb9sabyq2b4xda2"))))
- (build-system trivial-build-system)
- (arguments
- `(#:modules ((guix build utils))
- #:builder (begin
- (use-modules (guix build utils)
- (srfi srfi-26))
-
- (let ((PATH (string-append (assoc-ref %build-inputs
- "unzip")
- "/bin"))
- (font-dir (string-append %output
- "/share/fonts/truetype")))
- (setenv "PATH" PATH)
- (system* "unzip" (assoc-ref %build-inputs "source"))
-
- (mkdir-p font-dir)
- (for-each (lambda (ttf)
- (install-file ttf font-dir))
- (find-files "." "\\.ttf$"))))))
-
- (native-inputs `(("unzip" ,unzip)))
+ (build-system font-build-system)
(home-page "http://www.latofonts.com/lato-free-fonts/")
(synopsis "Lato sans-serif typeface")
(description
--
2.15.1
- [bug#30960] [PATCH 0/4] Switch to font-build-system, (continued)
- [bug#30960] [PATCH 0/4] Switch to font-build-system, ng0, 2018/03/27
- [bug#30960] [PATCH 0/4] Switch to font-build-system, Arun Isaac, 2018/03/27
- [bug#30960] [PATCH 0/4] Switch to font-build-system, ng0, 2018/03/27
- [bug#30960] [PATCH 0/4] Switch to font-build-system, Arun Isaac, 2018/03/27
- [bug#30960] [PATCH 0/4] Switch to font-build-system, ng0, 2018/03/27
- [bug#30960] [PATCH 0/4] Switch to font-build-system, ng0, 2018/03/27
- [bug#30960] [PATCH 0/4] Switch to font-build-system, ng0, 2018/03/27
- bug#30960: [PATCH 0/4] Switch to font-build-system, Arun Isaac, 2018/03/28
- [bug#30960] [PATCH 0/4] Switch to font-build-system, Arun Isaac, 2018/03/27
- [bug#30960] [PATCH 0/4] Switch to font-build-system, ng0, 2018/03/27
[bug#30960] [PATCH 1/4] gnu: font-lato: Switch to font-build-system.,
Arun Isaac <=