blob: 89a5c200b6fe289a631c527512b650324d329296 (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
include $(TOPDIR)/rules.mk
PKG_NAME:=noto-fonts
PKG_VERSION:=2026.11.01
PKG_RELEASE:=1
PKG_LICENSE:=OFL-1.1
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
include $(INCLUDE_DIR)/package.mk
NOTO_TAG:=noto-monthly-release-$(PKG_VERSION)
NOTO_URL:=https://raw.githubusercontent.com/notofonts/notofonts.github.io/$(NOTO_TAG)
NOTO_DIR:=/usr/share/fonts/noto
define Package/noto-fonts/Default
SECTION:=fonts
CATEGORY:=Fonts
SUBMENU:=Noto
URL:=https://notofonts.github.io/
DEPENDS:=+noto-fonts-license
PKGARCH:=all
endef
define NotoPackage
define Package/noto-fonts-$(1)
$$(call Package/noto-fonts/Default)
TITLE:=$$(NOTO_TITLE_$(1))
endef
define Package/noto-fonts-$(1)/description
Noto font families: $$(NOTO_FAMILIES_$(1))
endef
define Package/noto-fonts-$(1)/install
$$(INSTALL_DIR) $$(1)$$(NOTO_DIR)
$$(foreach f,$$(NOTO_FILES_$(1)),$$(INSTALL_DATA) $$(DL_DIR)/noto-fonts-$$(PKG_VERSION)-$$(f) $$(1)$$(NOTO_DIR)/$$(f);)
endef
$$(eval $$(call BuildPackage,noto-fonts-$(1)))
endef
define NotoFile
NOTO_FILES_$(1)+=$(5)
define Download/noto-fonts-$(5)
URL:=$$(NOTO_URL)/fonts/$(2)/googlefonts/$(3)/
URL_FILE:=$(4)
FILE:=noto-fonts-$$(PKG_VERSION)-$(5)
HASH:=$(6)
DOWNLOAD_RDEP:=$$(if $$(CONFIG_PACKAGE_noto-fonts-$(1)),$$(STAMP_PREPARED))
endef
$$(eval $$(call Download,noto-fonts-$(5)))
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) $(DL_DIR)/noto-fonts-$(PKG_VERSION)-LICENSE $(PKG_BUILD_DIR)/LICENSE
endef
define Build/Configure
endef
define Build/Compile
endef
include $(CURDIR)/noto-fonts.mk
$(foreach g,$(NOTO_GROUPS),$(eval $(call NotoPackage,$(g))))
define Download/noto-fonts-license
URL:=$(NOTO_URL)/fonts/
URL_FILE:=LICENSE
FILE:=noto-fonts-$(PKG_VERSION)-LICENSE
HASH:=$(NOTO_LICENSE_HASH)
DOWNLOAD_RDEP:=$(STAMP_PREPARED)
endef
$(eval $(call Download,noto-fonts-license))
define Package/noto-fonts-license
SECTION:=fonts
CATEGORY:=Fonts
SUBMENU:=Noto
TITLE:=Noto fonts licence (SIL OFL 1.1)
URL:=https://notofonts.github.io/
PKGARCH:=all
endef
define Package/noto-fonts-license/description
The SIL Open Font License 1.1 text that accompanies the Noto font
packages. They depend on this package so that the text is installed
once.
endef
define Package/noto-fonts-license/install
$(INSTALL_DIR) $(1)/usr/share/licenses/noto-fonts
$(INSTALL_DATA) $(DL_DIR)/noto-fonts-$(PKG_VERSION)-LICENSE $(1)/usr/share/licenses/noto-fonts/OFL.txt
endef
$(eval $(call BuildPackage,noto-fonts-license))
|