Marcel Telka
2024-04-02 f1b1912adc00984cd165470b728dda03ac81b2c6
commit | author | age
d3f882 1 #
AW 2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
6 #
7 # A full copy of the text of the CDDL should have accompanied this
8 # source.  A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
10 #
11
12 #
84eb20 13 # Copyright 2018,2021 Andreas Wacknitz
d3f882 14 #
AW 15
84eb20 16 BUILD_STYLE=                justmake
d3f882 17 include ../../../make-rules/shared-macros.mk
AW 18
2c825a 19 BUILD_BITS=                    32
acecb2 20 COMPONENT_NAME=                fira-code-ttf
AW 21 COMPONENT_SUMMARY=            Monospaced font with programming ligatures
e40804 22 COMPONENT_VERSION=             6.2
acecb2 23 COMPONENT_PROJECT_URL=         https://github.com/tonsky/FiraCode
AW 24 COMPONENT_FMRI=                system/font/truetype/fira-code
d3f882 25 COMPONENT_CLASSIFICATION=    System/Fonts
b1cb2a 26 COMPONENT_SRC_NAME=            Fira_Code
AW 27 COMPONENT_SRC=                $(COMPONENT_SRC_NAME)_v$(COMPONENT_VERSION)
acecb2 28 COMPONENT_ARCHIVE=          $(COMPONENT_SRC).zip
84eb20 29 COMPONENT_ARCHIVE_URL=        https://github.com/tonsky/FiraCode/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
e40804 30 COMPONENT_ARCHIVE_HASH=        sha256:0949915ba8eb24d89fd93d10a7ff623f42830d7c5ffc3ecbf960e4ecad3e3e79
acecb2 31 COMPONENT_LICENSE=            FiraCode License
AW 32 COMPONENT_LICENSE_FILE=        fira-code.license
d3f882 33
2c825a 34 TEST_TARGET=                $(NO_TESTS)
AW 35 include $(WS_MAKE_RULES)/common.mk
d3f882 36
AW 37 # doesn't extract into its own directory, so pass -r dir to the unpack target
38 UNPACK_ARGS+=-r $(COMPONENT_SRC)
39
40 FONT_TTF_DIR=/usr/share/fonts/TrueType
41 THIS_FONT_DIR=$(FONT_TTF_DIR)/fira-code
42
43 COMPONENT_BUILD_ACTION= cd $(@D)/ttf ; mkfontscale ; mkfontdir
44
45 COMPONENT_INSTALL_ACTION= cd $(@D) && \
46     rm -rf $(PROTO_DIR)$(THIS_FONT_DIR) && mkdir -p $(PROTO_DIR)$(THIS_FONT_DIR) && \
47         $(INSTALL) -c -m 0444 ttf/*.ttf ttf/fonts.dir ttf/fonts.scale $(PROTO_DIR)$(THIS_FONT_DIR);
48
49 REQUIRED_PACKAGES+= x11/mkfontdir
50 REQUIRED_PACKAGES+= x11/mkfontscale