41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
# Template file for 'noto-fonts-ttf'
|
|
pkgname=noto-fonts-ttf
|
|
version=20181202
|
|
revision=1
|
|
archs=noarch
|
|
_githash=85e78f831469323c85847e23f95026c894159135
|
|
wrksrc="noto-fonts-${_githash}"
|
|
depends="font-util"
|
|
font_dirs="/usr/share/fonts/noto"
|
|
short_desc="Google Noto TTF Fonts"
|
|
maintainer="Peter Bui <pbui@github.bx612.space>"
|
|
license="OFL-1.1"
|
|
homepage="https://www.google.com/get/noto/"
|
|
distfiles="https://github.com/googlei18n/noto-fonts/archive/${_githash}.tar.gz"
|
|
checksum=4649a3a66fd08c7676eefddefced98a5a9d4beaebed79495aa5b0a55f3943104
|
|
|
|
do_install() {
|
|
install -Dm644 unhinted/Noto*.ttf -t ${DESTDIR}/usr/share/fonts/noto
|
|
install -Dm644 hinted/Noto*.ttf -t ${DESTDIR}/usr/share/fonts/noto
|
|
}
|
|
|
|
noto-fonts-ttf-extra_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - additional variants"
|
|
pkg_install() {
|
|
vmove usr/share/fonts/noto/Noto*-ExtraCondensed*.ttf
|
|
vmove usr/share/fonts/noto/Noto*-Condensed*.ttf
|
|
vmove usr/share/fonts/noto/Noto*-SemiCondensed*.ttf
|
|
|
|
vmove usr/share/fonts/noto/Noto*-Thin*.ttf
|
|
vmove usr/share/fonts/noto/Noto*-ExtraLight*.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
|
|
}
|
|
}
|