# Template file for 'figlet-fonts'
pkgname=figlet-fonts
version=20150508
revision=4
_figlet_version=2.2.5
create_wrksrc=yes
depends="figlet perl"
short_desc="Additional fonts for figlet"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause"
homepage="http://www.figlet.org/fontdb.cgi"
distfiles="ftp://ftp.figlet.org/pub/figlet/fonts/contributed.tar.gz
 ftp://ftp.figlet.org/pub/figlet/fonts/international.tar.gz
 ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-${_figlet_version}.tar.gz"
checksum="2c569e052e638b28e4205023ae717f7b07e05695b728e4c80f4ce700354b18c8
 e6493f51c96f8671c29ab879a533c50b31ade681acfb59e50bae6b765e70c65a
 bf88c40fd0f077dab2712f54f8d39ac952e4e9f2e1882f1195be9e5e4257417d"

do_install() {
	vmkdir usr/share/figlet
	cp contributed/*.flf contributed/bdffonts/*.flf $DESTDIR/usr/share/figlet
	cp international/*.flf $DESTDIR/usr/share/figlet
	vbin contributed/bdffonts/bdf2flf.pl bdf2flf
	rm "${DESTDIR}/usr/share/figlet/banner.flf"
	vlicense "figlet-${_figlet_version}/LICENSE"
}
