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

Fabrice Fontaine fontaine.fabrice at gmail.com
Wed Feb 26 09:09:39 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 v2 -> v3 (after review of Baruch Siach):
 - Create a symlink to avoid duplication

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..5211ac22a5 100644
--- a/package/font-awesome/font-awesome.mk
+++ b/package/font-awesome/font-awesome.mk
@@ -13,6 +13,8 @@ define FONT_AWESOME_INSTALL_TARGET_CMDS
 	mkdir -p $(TARGET_DIR)/usr/share/font-awesome/
 		cp -dpfr $(@D)/$(d) $(TARGET_DIR)/usr/share/font-awesome$(sep))
+	mkdir -p $(TARGET_DIR)/usr/share/fonts/
+	ln -sf ../font-awesome $(TARGET_DIR)/usr/share/fonts/font-awesome
 $(eval $(generic-package))

More information about the buildroot mailing list