summaryrefslogtreecommitdiffstats
path: root/rules/xorg-font-ttf-lohit-punjabi.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:54 +0100
commitdfb67f2155d70f0b728a4595c0ba3b82fbf91336 (patch)
tree6f1d35d49318f409d4f23148e8032d61ded01110 /rules/xorg-font-ttf-lohit-punjabi.make
parent3eff380579b55460f5461c551ed9fede7cfb25a2 (diff)
downloadptxdist-dfb67f2155d70f0b728a4595c0ba3b82fbf91336.tar.gz
ptxdist-dfb67f2155d70f0b728a4595c0ba3b82fbf91336.tar.xz
xorg-font-ttf-lohit-punjabi: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/xorg-font-ttf-lohit-punjabi.make')
-rw-r--r--rules/xorg-font-ttf-lohit-punjabi.make85
1 files changed, 85 insertions, 0 deletions
diff --git a/rules/xorg-font-ttf-lohit-punjabi.make b/rules/xorg-font-ttf-lohit-punjabi.make
new file mode 100644
index 000000000..80d7c7aa7
--- /dev/null
+++ b/rules/xorg-font-ttf-lohit-punjabi.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_PUNJABI) += xorg-font-ttf-lohit-punjabi
+
+#
+# Paths and names
+#
+XORG_FONT_TTF_LOHIT_PUNJABI_VERSION := 2.5.3
+XORG_FONT_TTF_LOHIT_PUNJABI_MD5 := deab8c052af328248e8f619178ff890d
+XORG_FONT_TTF_LOHIT_PUNJABI := lohit-punjabi-ttf-$(XORG_FONT_TTF_LOHIT_PUNJABI_VERSION)
+XORG_FONT_TTF_LOHIT_PUNJABI_SUFFIX := tar.gz
+XORG_FONT_TTF_LOHIT_PUNJABI_URL := https://fedorahosted.org/releases/l/o/lohit/$(XORG_FONT_TTF_LOHIT_PUNJABI).$(XORG_FONT_TTF_LOHIT_PUNJABI_SUFFIX)
+XORG_FONT_TTF_LOHIT_PUNJABI_SOURCE := $(SRCDIR)/$(XORG_FONT_TTF_LOHIT_PUNJABI).$(XORG_FONT_TTF_LOHIT_PUNJABI_SUFFIX)
+XORG_FONT_TTF_LOHIT_PUNJABI_DIR := $(BUILDDIR)/$(XORG_FONT_TTF_LOHIT_PUNJABI)
+XORG_FONT_TTF_LOHIT_PUNJABI_LICENSE := OFL-1.1
+XORG_FONT_TTF_LOHIT_PUNJABI_LICENSE_FILES := \
+ file://OFL.txt;md5=e56537d157e0ee370c0d8468da33e245
+
+ifdef PTXCONF_XORG_FONT_TTF_LOHIT_PUNJABI
+$(STATEDIR)/xorg-fonts.targetinstall.post: $(STATEDIR)/xorg-font-ttf-lohit-punjabi.targetinstall
+endif
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+XORG_FONT_TTF_LOHIT_PUNJABI_CONF_TOOL := NO
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xorg-font-ttf-lohit-punjabi.compile:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xorg-font-ttf-lohit-punjabi.install:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xorg-font-ttf-lohit-punjabi.targetinstall:
+ @$(call targetinfo)
+
+ @mkdir -p $(XORG_FONTS_DIR_INSTALL)/truetype
+
+ @find $(XORG_FONT_TTF_LOHIT_PUNJABI_DIR) \
+ -name "*.ttf" \
+ | \
+ while read file; do \
+ install -m 644 $${file} $(XORG_FONTS_DIR_INSTALL)/truetype; \
+ done
+
+ @$(call install_init, xorg-font-ttf-lohit-punjabi)
+ @$(call install_fixup, xorg-font-ttf-lohit-punjabi,PRIORITY,optional)
+ @$(call install_fixup, xorg-font-ttf-lohit-punjabi,SECTION,base)
+ @$(call install_fixup, xorg-font-ttf-lohit-punjabi,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, xorg-font-ttf-lohit-punjabi,DESCRIPTION,missing)
+
+ @$(call install_copy, xorg-font-ttf-lohit-punjabi, 0, 0, 644, \
+ $(XORG_FONT_TTF_LOHIT_PUNJABI_DIR)/66-lohit-punjabi.conf, \
+ /etc/fonts/conf.d/66-lohit-punjabi.conf)
+
+ @$(call install_finish, xorg-font-ttf-lohit-punjabi)
+ @$(call touch)
+
+# vim: syntax=make