void-packages/srcpkgs/font-ibm-plex-ttf/template

37 lines
941 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Template file for 'font-ibm-plex-ttf'
pkgname=font-ibm-plex-ttf
version=1.2.1
revision=1
wrksrc="plex-${version}"
noarch=yes
depends="font-util"
font_dirs="/usr/share/fonts/TTF"
short_desc="The package of IBMs typeface, IBM Plex (TTF variant)"
maintainer="Vintodrimmer <vintodrimmer@protonmail.ch>"
license="OFL-1.1"
homepage="https://github.com/IBM/plex"
distfiles="https://github.com/IBM/plex/archive/v${version}.tar.gz"
checksum=e4e0c5f283da40de644321df04edc9cd65ddee0ebf998597a3039138a5a405e5
do_install() {
vmkdir usr/share/fonts/TTF
for files in IBM-Plex-*/fonts/complete/ttf/*.ttf; do
vinstall ${files} 0644 \
usr/share/fonts/TTF
done
}
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
for files in IBM-Plex-*/fonts/complete/otf/*.otf; do
vinstall ${files} 0644 \
usr/share/fonts/OTF
done
}
}