[Buildroot] [PATCH/next v2, 1/1] package/font-awesome: make it compatible with fontconfig

Fabrice Fontaine fontaine.fabrice at gmail.com
Tue Feb 25 16:33:43 UTC 2020

This commit installs font-awesome in the standard fonts directory
making it available systemwide.

Thanks to baruch for his technical critique.
Signed-off-by: Benjamin Calderon <benj.calderon at gmail.com>
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Changes v1 -> v2 (after review of Arnout Vandecappelle):
 - Keep only install of otf file and don't remove install of other files

 package/font-awesome/font-awesome.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/font-awesome/font-awesome.mk b/package/font-awesome/font-awesome.mk
index 666346be0e..85e5a239c5 100644
--- a/package/font-awesome/font-awesome.mk
+++ b/package/font-awesome/font-awesome.mk
@@ -10,6 +10,8 @@ FONT_AWESOME_LICENSE = OFL-1.1 (font), MIT (CSS, LESS and Sass files)
 FONT_AWESOME_DIRECTORIES_LIST = css fonts less scss
+	mkdir -p $(TARGET_DIR)/usr/share/fonts/font-awesome/
+	cp $(@D)/fonts/*.otf $(TARGET_DIR)/usr/share/fonts/font-awesome
 	mkdir -p $(TARGET_DIR)/usr/share/font-awesome/
 		cp -dpfr $(@D)/$(d) $(TARGET_DIR)/usr/share/font-awesome$(sep))

More information about the buildroot mailing list