summaryrefslogtreecommitdiffstats
path: root/package/googlefontdirectory/googlefontdirectory.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/googlefontdirectory/googlefontdirectory.mk')
-rw-r--r--package/googlefontdirectory/googlefontdirectory.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/googlefontdirectory/googlefontdirectory.mk b/package/googlefontdirectory/googlefontdirectory.mk
new file mode 100644
index 000000000..ddc832afe
--- /dev/null
+++ b/package/googlefontdirectory/googlefontdirectory.mk
@@ -0,0 +1,27 @@
+#############################################################
+#
+# 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; \
+ done
+endef
+
+define GOOGLEFONTDIRECTORY_UNINSTALL_TARGET_CMDS
+ rm -rf $(addprefix $(TARGET_DIR)/usr/share/fonts/,$(GOOGLEFONTDIRECTORY_FONTS))
+endef
+
+$(eval $(generic-package))