SUMMARY="A font containing scalable vector icons"
DESCRIPTION="FontAwesome contains over 600 icons and is most widely used on \
the internet to depict certain actions. Haiku's discussion forum at \
https://discuss.haiku-os.org uses it as well.
As long as Haiku doesn't support loading a font that's not installed, you \
should install this webfont to see all the icons on the discussion forum."
HOMEPAGE="https://fontawesome.com/"
COPYRIGHT="2013-2018 Dave Gandy"
LICENSE="SIL Open Font License v1.1"
REVISION="1"
SOURCE_URI="https://use.fontawesome.com/releases/v$portVersion/fontawesome-free-$portVersion-web.zip"
CHECKSUM_SHA256="77923c846cc325f2a491909d7f94954dd56557f10b7cd3c47e95fb6765209884"
SOURCE_DIR="fontawesome-free-$portVersion-web"

ARCHITECTURES="any"
DISABLE_SOURCE_PACKAGE="yes"

PROVIDES="
	fontawesome = $portVersion
	"

BUILD_PREREQUIRES="
	cmd:cp
	cmd:mkdir
	"

INSTALL()
{
	FONTDIR=$fontsDir/ttfonts
	mkdir -p ${FONTDIR}
	cp -a webfonts/*.ttf ${FONTDIR}
}
