# Template file for 'font-inter'
pkgname=font-inter
version=4.0
revision=1
depends="font-util"
short_desc="Typeface carefully crafted & designed for computer screens"
maintainer="Robin Lundgren <linkert@onan.in>"
license="OFL-1.1"
homepage="https://rsms.me/inter/"
distfiles="https://github.com/rsms/inter/releases/download/v${version}/Inter-${version}.zip"
checksum=ff970a5d4561a04f102a7cb781adbd6ac4e9b6c460914c7a101f15acb7f7d1a4

font_dirs="/usr/share/fonts/TTF/inter"

do_install() {
	vmkdir usr/share/fonts/TTF/inter
	vcopy "extras/ttf/*.ttf" usr/share/fonts/TTF/inter
	vlicense LICENSE.txt LICENSE.md
}

font-inter-variable_package() {
	short_desc+=" - variable"
	pkg_install() {
		vmkdir usr/share/fonts/TTF/inter
		vcopy "InterVariable*.ttf" usr/share/fonts/TTF/inter
		vlicense LICENSE.txt LICENSE.md
	}
}
