aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorng0 <ng0@no-reply.pragmatique.xyz>2017-05-28 19:33:13 +0000
committerArun Isaac <arunisaac@systemreboot.net>2017-06-01 15:17:05 +0530
commit45d32e243a4122f244a8e82630121db042ffdb14 (patch)
tree4c9ee75db9a2f2178cf5ee1ab0556766ad9ce03e /gnu
parent7f8e8ff811ea5bb4030ccd816d538d88909a664b (diff)
downloadguix-45d32e243a4122f244a8e82630121db042ffdb14.tar
guix-45d32e243a4122f244a8e82630121db042ffdb14.tar.gz
gnu: font-liberation: Use 'font-build-system'.
* gnu/packages/fonts.scm (font-liberation): Switch to 'font-build-system'. Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/fonts.scm29
1 files changed, 1 insertions, 28 deletions
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 4ca707a1c0..620c5dec74 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -231,34 +231,7 @@ sans-serif designed for on-screen reading. It is used by GNOME@tie{}3.")
(sha256
(base32
"010m4zfqan4w04b6bs9pm3gapn9hsb18bmwwgp2p6y6idj52g43q"))))
- (build-system trivial-build-system)
- (arguments
- `(#:modules ((guix build utils))
- #:builder
- (begin
- (use-modules (guix build utils))
-
- (let ((tar (string-append (assoc-ref %build-inputs "tar")
- "/bin/tar"))
- (PATH (string-append (assoc-ref %build-inputs "gzip")
- "/bin"))
- (font-dir (string-append %output "/share/fonts/truetype"))
- (doc-dir (string-append %output "/share/doc/" ,name)))
- (setenv "PATH" PATH)
- (system* tar "xvf" (assoc-ref %build-inputs "source"))
- (mkdir-p font-dir)
- (mkdir-p doc-dir)
- (chdir (string-append "liberation-fonts-ttf-" ,version))
- (for-each (lambda (ttf)
- (install-file ttf font-dir))
- (find-files "." "\\.ttf$"))
- (for-each (lambda (doc)
- (install-file doc doc-dir))
- '("AUTHORS" "ChangeLog" "LICENSE" "README" "TODO"))))))
- (native-inputs
- `(("source" ,source)
- ("tar" ,tar)
- ("gzip" ,gzip)))
+ (build-system font-build-system)
(home-page "https://pagure.io/liberation-fonts/")
(synopsis
"Fonts compatible with Arial, Times New Roman, and Courier New")