vp-build/srcpkgs/font-ibm-plex-ttf/template

31 lines
946 B
Bash
Raw Permalink 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=6.1.1
revision=1
depends="font-util"
short_desc="IBMs 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=198936deddf38b1e108f6537790a6707650b69ba61371f8591f9d9a1ed6f9604
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
}
}