# Template file for 'font-reem-kufi-ttf'
pkgname=font-reem-kufi-ttf
version=1.7
revision=1
depends="font-util"
short_desc="Modern Kufic typefaces for Arabic"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/aliftype/reem-kufi"
distfiles="https://github.com/aliftype/reem-kufi/releases/download/v${version}/ReemKufi-${version}.zip"
checksum=2359f036c7bddeb4d5529d7b3c9139c3288c920cc26053d417cdbb563eafe0a4
font_dirs="/usr/share/fonts/TTF/arabic"

do_install() {
	vmkdir usr/share/fonts/TTF/arabic
	vcopy "ttf/*.ttf" usr/share/fonts/TTF/arabic
}

font-reem-kufi-otf_package() {
	short_desc+=" - OTF"
	font_dirs="/usr/share/fonts/OTF/arabic"
	pkg_install() {
		vmkdir usr/share/fonts/OTF/arabic
		vcopy "*.otf" usr/share/fonts/OTF/arabic
	}
}
