# Template file for 'font-ibm-plex-ttf' pkgname=font-ibm-plex-ttf version=6.4.0 revision=1 depends="font-util" short_desc="IBM’s typeface, IBM Plex (TTF variant)" maintainer="Felipe Nogueira " license="OFL-1.1" homepage="https://github.com/IBM/plex" distfiles="https://github.com/IBM/plex/archive/v${version}.tar.gz" checksum=af624686c1290c3d7dadd517851a744dda2c001ae0a49c46dc4f84974d1928e9 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 } }