# Template file for 'google-fonts-ttf' pkgname=google-fonts-ttf version=20220819 revision=3 _githash=4d93a40d26493aa652ce200dab43ed80e2194213 # Those fonts were provided by google-fonts-ttf depends="font-util cantarell-fonts noto-fonts-ttf noto-fonts-emoji amiri-font fonts-croscore-ttf font-b612 font-fira-ttf font-ibm-plex-ttf font-manjari font-material-design-icons-ttf ttf-opensans source-sans-pro fonts-roboto-ttf font-vollkorn-ttf ttf-ubuntu-font-family" short_desc="Google's Collection of Fonts" maintainer="Orphaned " license="Apache-2.0, OFL-1.1" homepage="https://www.google.com/fonts" distfiles="https://github.com/google/fonts/archive/${_githash}.tar.gz" checksum=c57a6b1ad81d97b002f740721528084c54cf88c0e3dfe3436d780d814f0268af font_dirs="/usr/share/fonts/TTF" post_extract() { # https://github.com/google/fonts/issues/2106#issuecomment-520067314 rm -r ofl/adobeblank xargs rm -r <"$FILESDIR/dup.lst" # ttf-ubuntu-font-family rm -r ufl # noto-fonts-ttf rm -r ofl/noto* } do_install() { vmkdir usr/share/fonts/TTF find apache ofl \ -type f -name '*.ttf' -exec \ install -Dm644 '{}' ${DESTDIR}/usr/share/fonts/TTF \; }