50 lines
1.5 KiB
Bash
50 lines
1.5 KiB
Bash
# Template file for 'noto-fonts-ttf'
|
|
pkgname=noto-fonts-ttf
|
|
reverts="20220810_1 20190926_2 20190926_1 20181202_1 20181106_1"
|
|
version=24.8.1
|
|
revision=2
|
|
depends="font-util"
|
|
short_desc="Google Noto TTF Fonts"
|
|
maintainer="classabbyamp <void@placeviolette.net>"
|
|
license="OFL-1.1"
|
|
homepage="https://notofonts.github.io/"
|
|
distfiles="https://github.com/notofonts/notofonts.github.io/archive/refs/tags/noto-monthly-release-${version}.tar.gz"
|
|
checksum=84d292fc934ad6a9f20705fdfa5764b81b456b0e733f98b6f44388fb8c8eb44a
|
|
font_dirs="/usr/share/fonts/noto"
|
|
nostrip=yes # just font files
|
|
|
|
do_install() {
|
|
vmkdir usr/share/fonts/noto
|
|
vcopy "fonts/Noto*/hinted/ttf/*.ttf" usr/share/fonts/noto
|
|
vlicense fonts/LICENSE
|
|
}
|
|
|
|
noto-fonts-ttf-extra_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - additional variants"
|
|
nostrip=yes # just font files
|
|
pkg_install() {
|
|
vmove "usr/share/fonts/noto/Noto*-*Condensed*.ttf"
|
|
|
|
vmove "usr/share/fonts/noto/Noto*-*Thin*.ttf"
|
|
vmove "usr/share/fonts/noto/Noto*-*Light*.ttf"
|
|
# keep *-Regular*
|
|
vmove "usr/share/fonts/noto/Noto*-*Medium*.ttf"
|
|
vmove "usr/share/fonts/noto/Noto*-*SemiBold*.ttf"
|
|
# keep *-Bold*
|
|
vmove "usr/share/fonts/noto/Noto*-*ExtraBold*.ttf"
|
|
vmove "usr/share/fonts/noto/Noto*-*Black*.ttf"
|
|
}
|
|
}
|
|
|
|
noto-fonts-ttf-variable_package() {
|
|
short_desc+=" - variable weight fonts"
|
|
depends="font-util"
|
|
nostrip=yes # just font files
|
|
pkg_install() {
|
|
vmkdir usr/share/fonts/noto
|
|
vcopy "fonts/Noto*/unhinted/slim-variable-ttf/Noto*.ttf" usr/share/fonts/noto
|
|
vlicense fonts/LICENSE
|
|
}
|
|
}
|