29662f6e05
When there’s a choice between hinted and unhinted variants for a font family, this template chooses the former. This is more or less an arbitrary choice, since I’m unaware of any specific guidelines of this sort. It’s impossible to include both, as the files themselves overlap, and including neither (where applicable) would completely remove support for some languages.
31 lines
971 B
Bash
31 lines
971 B
Bash
# Template file for 'font-ibm-plex-ttf'
|
||
pkgname=font-ibm-plex-ttf
|
||
version=6.0.0
|
||
revision=1
|
||
wrksrc="plex-${version}"
|
||
depends="font-util"
|
||
short_desc="IBM’s typeface, IBM Plex (TTF variant)"
|
||
maintainer="Felipe Nogueira <contato.fnog@gmail.com>"
|
||
license="OFL-1.1"
|
||
homepage="https://github.com/IBM/plex"
|
||
distfiles="https://github.com/IBM/plex/archive/v${version}.tar.gz"
|
||
checksum=e78cc68cb40ccca0318facade727a0deb32f73e931a2e31bb2fcaf8a6d386dff
|
||
|
||
font_dirs="/usr/share/fonts/TTF"
|
||
|
||
do_install() {
|
||
vmkdir usr/share/fonts/TTF
|
||
vcopy "IBM-Plex-*/fonts/complete/ttf/*.ttf" usr/share/fonts/TTF
|
||
vcopy "IBM-Plex-*/fonts/complete/ttf/hinted/*.ttf" usr/share/fonts/TTF
|
||
}
|
||
|
||
font-ibm-plex-otf_package() {
|
||
depends="font-util"
|
||
font_dirs="/usr/share/fonts/OTF"
|
||
short_desc="${short_desc/TTF/OTF}"
|
||
pkg_install() {
|
||
vmkdir usr/share/fonts/OTF
|
||
vcopy "IBM-Plex-*/fonts/complete/otf/*.otf" usr/share/fonts/OTF
|
||
vcopy "IBM-Plex-*/fonts/complete/otf/hinted/*.otf" usr/share/fonts/OTF
|
||
}
|
||
}
|