# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

MY_P1="ScheherazadeNew-${PV}"
MY_P2="LateefGR-1.200"
inherit font

DESCRIPTION="SIL Opentype Unicode fonts for Arabic Languages"
HOMEPAGE="https://software.sil.org/arabicfonts/"
SRC_URI="https://software.sil.org/downloads/r/scheherazade/${MY_P1}.zip
	https://software.sil.org/downloads/r/lateef/${MY_P2}.zip"

LICENSE="OFL-1.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~hppa ~loong ppc ppc64 ~s390 ~sparc x86"

BDEPEND="app-arch/unzip"

DOCS=( FONTLOG.txt OFL-FAQ.txt )

FONT_SUFFIX="ttf"

src_unpack() {
	default
	mv "${MY_P1}" "${P}" || die
	mv "${MY_P2}/LateefGR-Regular.ttf" "${P}" || die
}