void-packages/srcpkgs/google-fonts-ttf/template

41 lines
1.4 KiB
Bash

# Template file for 'google-fonts-ttf'
pkgname=google-fonts-ttf
version=20230317
revision=2
_githash=e49bba3794b8c48d3cc706577d7aa3f31388e82f
# 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 font-adobe-source-sans-pro-v2
font-adobe-source-serif-pro font-sil-alkalami font-sil-tai-heritage-pro
font-sil-charis font-sil-padauk font-sil-abyssinica font-sil-mingzat
font-sil-harmattan font-libre-hebrew font-alef font-reem-kufi-ttf
font-crosextra-caladea-ttf font-adobe-source-code-pro
fonts-roboto-ttf font-vollkorn-ttf ttf-ubuntu-font-family"
short_desc="Google's Collection of Fonts"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0, OFL-1.1"
homepage="https://www.google.com/fonts"
distfiles="https://github.com/google/fonts/archive/${_githash}.tar.gz"
checksum=b32a5c20ff642ef1fb5f8361e5881ee8b75a37fde02e43638903e7429c1fad71
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 \;
}