summaryrefslogtreecommitdiffstats
path: root/rules/xorg-font-ttf-lohit-telugu.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-10-21 11:09:44 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2015-10-27 11:10:55 +0100
commitab0ba0d506e3539613c08915e89ae3676b370dc9 (patch)
tree7db9e226f970252321a5a79373ed10d048601f93 /rules/xorg-font-ttf-lohit-telugu.make
parent8b0e7683a903ad769fdf9521a5a3c53567e46775 (diff)
downloadptxdist-ab0ba0d506e3539613c08915e89ae3676b370dc9.tar.gz
ptxdist-ab0ba0d506e3539613c08915e89ae3676b370dc9.tar.xz
xorg-font-ttf-lohit-telugu: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/xorg-font-ttf-lohit-telugu.make')
-rw-r--r--rules/xorg-font-ttf-lohit-telugu.make85
1 files changed, 85 insertions, 0 deletions
diff --git a/rules/xorg-font-ttf-lohit-telugu.make b/rules/xorg-font-ttf-lohit-telugu.make
new file mode 100644
index 000000000..9caf24f3d
--- /dev/null
+++ b/rules/xorg-font-ttf-lohit-telugu.make
@@ -0,0 +1,85 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2015 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_XORG_FONT_TTF_LOHIT_TELUGU) += xorg-font-ttf-lohit-telugu
+
+#
+# Paths and names
+#
+XORG_FONT_TTF_LOHIT_TELUGU_VERSION := 2.5.4
+XORG_FONT_TTF_LOHIT_TELUGU_MD5 := 0d9ec6fd82ad4a6951f5e40600c76181
+XORG_FONT_TTF_LOHIT_TELUGU := lohit-telugu-ttf-$(XORG_FONT_TTF_LOHIT_TELUGU_VERSION)
+XORG_FONT_TTF_LOHIT_TELUGU_SUFFIX := tar.gz
+XORG_FONT_TTF_LOHIT_TELUGU_URL := https://fedorahosted.org/releases/l/o/lohit/$(XORG_FONT_TTF_LOHIT_TELUGU).$(XORG_FONT_TTF_LOHIT_TELUGU_SUFFIX)
+XORG_FONT_TTF_LOHIT_TELUGU_SOURCE := $(SRCDIR)/$(XORG_FONT_TTF_LOHIT_TELUGU).$(XORG_FONT_TTF_LOHIT_TELUGU_SUFFIX)
+XORG_FONT_TTF_LOHIT_TELUGU_DIR := $(BUILDDIR)/$(XORG_FONT_TTF_LOHIT_TELUGU)
+XORG_FONT_TTF_LOHIT_TELUGU_LICENSE := OFL-1.1
+XORG_FONT_TTF_LOHIT_TELUGU_LICENSE_FILES := \
+ file://OFL.txt;md5=7dfa0a236dc535ad2d2548e6170c4402
+
+ifdef PTXCONF_XORG_FONT_TTF_LOHIT_TELUGU
+$(STATEDIR)/xorg-fonts.targetinstall.post: $(STATEDIR)/xorg-font-ttf-lohit-telugu.targetinstall
+endif
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+XORG_FONT_TTF_LOHIT_TELUGU_CONF_TOOL := NO
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xorg-font-ttf-lohit-telugu.compile:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xorg-font-ttf-lohit-telugu.install:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xorg-font-ttf-lohit-telugu.targetinstall:
+ @$(call targetinfo)
+
+ @mkdir -p $(XORG_FONTS_DIR_INSTALL)/truetype
+
+ @find $(XORG_FONT_TTF_LOHIT_TELUGU_DIR) \
+ -name "*.ttf" \
+ | \
+ while read file; do \
+ install -m 644 $${file} $(XORG_FONTS_DIR_INSTALL)/truetype; \
+ done
+
+ @$(call install_init, xorg-font-ttf-lohit-telugu)
+ @$(call install_fixup, xorg-font-ttf-lohit-telugu,PRIORITY,optional)
+ @$(call install_fixup, xorg-font-ttf-lohit-telugu,SECTION,base)
+ @$(call install_fixup, xorg-font-ttf-lohit-telugu,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, xorg-font-ttf-lohit-telugu,DESCRIPTION,missing)
+
+ @$(call install_copy, xorg-font-ttf-lohit-telugu, 0, 0, 644, \
+ $(XORG_FONT_TTF_LOHIT_TELUGU_DIR)/66-lohit-telugu.conf, \
+ /etc/fonts/conf.d/66-lohit-telugu.conf)
+
+ @$(call install_finish, xorg-font-ttf-lohit-telugu)
+ @$(call touch)
+
+# vim: syntax=make