# Template file for 'font-fira-otf'
pkgname=font-fira-otf
version=4.202
revision=4
depends="font-util xbps-triggers"
short_desc="Mozilla's new typeface OTF, used in Firefox OS"
maintainer="Orphaned <orphan@voidlinux.org>"
license="OFL-1.1"
homepage="http://mozilla.github.io/Fira/"
distfiles="https://github.com/mozilla/Fira/archive/${version}.tar.gz"
checksum=d86269657387f144d77ba12011124f30f423f70672e1576dc16f918bb16ddfe4

font_dirs="/usr/share/fonts/OTF"

do_install() {
	vmkdir usr/share/fonts/OTF
	vmkdir usr/share/fonts/TTF

	vcopy otf/*.otf usr/share/fonts/OTF
	vcopy ttf/*.ttf usr/share/fonts/TTF
}

font-fira-ttf_package() {
	font_dirs="/usr/share/fonts/TTF"
	depends="font-util xbps-triggers"
	pkg_install() {
		vmove usr/share/fonts/TTF
	}
}
