Marcel Telka
2024-04-02 f1b1912adc00984cd165470b728dda03ac81b2c6
commit | author | age
ddf5af 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 #
13 # Copyright 2021 Andreas Wacknitz
14 #
15
16 BUILD_STYLE=                justmake
17 include ../../../make-rules/shared-macros.mk
18
19 BUILD_BITS=                    32
20 COMPONENT_NAME=                iosevka-ttf
21 COMPONENT_SUMMARY=            Monospaced font with programming ligatures
22 COMPONENT_VERSION=             11.2.0
23 COMPONENT_PROJECT_URL=         https://github.com/be5invis/Iosevka
24 COMPONENT_FMRI=                system/font/truetype/iosevka
25 COMPONENT_CLASSIFICATION=    System/Fonts
26 COMPONENT_SRC_NAME=            ttf-iosevka
27 COMPONENT_SRC=                $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
28 COMPONENT_ARCHIVE=          $(COMPONENT_SRC).zip
29 COMPONENT_ARCHIVE_URL=        $(COMPONENT_PROJECT_URL)/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
30 COMPONENT_ARCHIVE_HASH=        sha256:defb37d81dce47709284b7001ccc72dde5716f520f5964cfb7483d2bfdf39654
31 COMPONENT_LICENSE=            SIL Open Font License 1.1
32
33 TEST_TARGET=                $(NO_TESTS)
34 include $(WS_MAKE_RULES)/common.mk
35
36 # doesn't extract into its own directory, so pass -r dir to the unpack target
37 UNPACK_ARGS+=-r $(COMPONENT_SRC)
38
39 FONT_TTF_DIR=/usr/share/fonts/TrueType
40 THIS_FONT_DIR=$(FONT_TTF_DIR)/iosevka
41
42 COMPONENT_BUILD_ACTION= cd $(@D); mkfontscale ; mkfontdir
43
44 COMPONENT_INSTALL_ACTION= cd $(@D) && \
45     rm -rf $(PROTO_DIR)$(THIS_FONT_DIR) && mkdir -p $(PROTO_DIR)$(THIS_FONT_DIR) && \
46         $(INSTALL) -c -m 0444 *.ttf fonts.dir fonts.scale $(PROTO_DIR)$(THIS_FONT_DIR);
47
48 REQUIRED_PACKAGES+= x11/mkfontdir
49 REQUIRED_PACKAGES+= x11/mkfontscale
50
51 # Auto-generated dependencies