# Template file for 'terminus-font'
pkgname=terminus-font
version=4.39
revision=1
short_desc="A clean, fixed width bitmap font"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://terminus-font.sourceforge.net/"
license="OFL-1.1, GPL-2"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=3108383986b365a4b9cc08c31a4195196f6de974d2735d77f6c6efa9feb1f5bf

hostmakedepends="perl bdftopcf font-util"
makedepends="font-util"
depends="font-util"
noarch="yes"
font_dirs="/usr/share/fonts/X11/misc"

do_configure() {
	sh ./configure --prefix=/usr --x11dir=/usr/share/fonts/X11/misc \
		--psfdir=/usr/share/kbd/consolefonts
}

do_build() {
	make ${makejobs}
}

do_install() {
	make DESTDIR=${DESTDIR} install

	vinstall OFL.TXT 644 usr/share/licenses/${pkgname} LICENSE
}