vim: update to 9.1.0984
[oi-userland.git] / components / fonts / iosevka-ttf / Makefile
blob536e0b525850dd0b13d75ed92d424d783e951e8a
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.
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.
13 # Copyright 2021 Andreas Wacknitz
16 BUILD_STYLE= justmake
17 include ../../../make-rules/shared-macros.mk
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
33 TEST_TARGET= $(NO_TESTS)
34 include $(WS_MAKE_RULES)/common.mk
36 # doesn't extract into its own directory, so pass -r dir to the unpack target
37 UNPACK_ARGS+=-r $(COMPONENT_SRC)
39 FONT_TTF_DIR=/usr/share/fonts/TrueType
40 THIS_FONT_DIR=$(FONT_TTF_DIR)/iosevka
42 COMPONENT_BUILD_ACTION= cd $(@D); mkfontscale ; mkfontdir
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);
48 REQUIRED_PACKAGES+= x11/mkfontdir
49 REQUIRED_PACKAGES+= x11/mkfontscale
51 # Auto-generated dependencies