summaryrefslogtreecommitdiffstats
path: root/rules/xorg-font-ttf-lohit-devanagari.make
blob: 9d449ebc98307bc0dea652ceaf4c18d55a1152c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# -*-makefile-*-
#
# Copyright (C) 2015 by Michael Olbrich <m.olbrich@pengutronix.de>
#           (C) 2018 by Florian Bäuerle <florian.baeuerle@allegion.com>
#
# 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_DEVANAGARI) += xorg-font-ttf-lohit-devanagari

#
# Paths and names
#
XORG_FONT_TTF_LOHIT_DEVANAGARI_VERSION	:= 2.95.2
XORG_FONT_TTF_LOHIT_DEVANAGARI_MD5	:= 270adeaad6758d8e94cc6217d7db5596
XORG_FONT_TTF_LOHIT_DEVANAGARI		:= lohit-devanagari-ttf-$(XORG_FONT_TTF_LOHIT_DEVANAGARI_VERSION)
XORG_FONT_TTF_LOHIT_DEVANAGARI_SUFFIX	:= tar.gz
XORG_FONT_TTF_LOHIT_DEVANAGARI_URL	:= https://releases.pagure.org/lohit/$(XORG_FONT_TTF_LOHIT_DEVANAGARI).$(XORG_FONT_TTF_LOHIT_DEVANAGARI_SUFFIX)
XORG_FONT_TTF_LOHIT_DEVANAGARI_SOURCE	:= $(SRCDIR)/$(XORG_FONT_TTF_LOHIT_DEVANAGARI).$(XORG_FONT_TTF_LOHIT_DEVANAGARI_SUFFIX)
XORG_FONT_TTF_LOHIT_DEVANAGARI_DIR	:= $(BUILDDIR)/$(XORG_FONT_TTF_LOHIT_DEVANAGARI)
XORG_FONT_TTF_LOHIT_DEVANAGARI_LICENSE	:= OFL-1.1
XORG_FONT_TTF_LOHIT_DEVANAGARI_LICENSE_FILES := \
	file://OFL.txt;md5=7dfa0a236dc535ad2d2548e6170c4402

XORG_FONT_TTF_LOHIT_DEVANAGARI_CONF_TOOL	:= NO
XORG_FONT_TTF_LOHIT_DEVANAGARI_FONTDIR		:= $(XORG_FONTDIR)/truetype/lohit-devanagari

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

$(STATEDIR)/xorg-font-ttf-lohit-devanagari.compile:
	@$(call targetinfo)
	@$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

$(STATEDIR)/xorg-font-ttf-lohit-devanagari.install:
	@$(call targetinfo)
	@$(call world/install-fonts,XORG_FONT_TTF_LOHIT_DEVANAGARI,*.ttf)
	@mkdir -p $(XORG_FONT_TTF_LOHIT_DEVANAGARI_PKGDIR)/etc/fonts/conf.d
	@install -m 644 $(XORG_FONT_TTF_LOHIT_DEVANAGARI_DIR)/66-lohit-devanagari.conf \
		$(XORG_FONT_TTF_LOHIT_DEVANAGARI_PKGDIR)/etc/fonts/conf.d
	@$(call touch)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/xorg-font-ttf-lohit-devanagari.targetinstall:
	@$(call targetinfo)
	@$(call install_init,  xorg-font-ttf-lohit-devanagari)
	@$(call install_fixup, xorg-font-ttf-lohit-devanagari,PRIORITY,optional)
	@$(call install_fixup, xorg-font-ttf-lohit-devanagari,SECTION,base)
	@$(call install_fixup, xorg-font-ttf-lohit-devanagari,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
	@$(call install_fixup, xorg-font-ttf-lohit-devanagari,DESCRIPTION,missing)

	@$(call install_tree, xorg-font-ttf-lohit-devanagari, 0, 0, -, /etc)
	@$(call install_tree, xorg-font-ttf-lohit-devanagari, 0, 0, -, /usr)

	@$(call install_finish, xorg-font-ttf-lohit-devanagari)
	@$(call touch)

# vim: syntax=make