kumquat-buildroot/package/googlefontdirectory/googlefontdirectory.mk
Thomas Petazzoni a0cefa916b googlefontdirectory: add error handling to for loop
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-12-01 23:30:59 +01:00

24 lines
722 B
Makefile

################################################################################
#
# googlefontdirectory
#
################################################################################
GOOGLEFONTDIRECTORY_SITE = \
https://s3.amazonaws.com/joemaller_google_webfonts
GOOGLEFONTDIRECTORY_SOURCE = googlewebfonts.tgz
GOOGLEFONTDIRECTORY_LICENSE = OFLv1.1
GOOGLEFONTDIRECTORY_FONTS = \
$(call qstrip,$(BR2_PACKAGE_GOOGLEFONTDIRECTORY_FONTS))
define GOOGLEFONTDIRECTORY_INSTALL_TARGET_CMDS
for i in $(GOOGLEFONTDIRECTORY_FONTS); \
do \
$(INSTALL) -d $(TARGET_DIR)/usr/share/fonts/$$i && \
$(INSTALL) -m 0644 -t $(TARGET_DIR)/usr/share/fonts/$$i $(@D)/$$i/*.ttf || exit 1; \
done
endef
$(eval $(generic-package))