#Maintainer: Thorsten Muehlfelder <thenktor@gmx.de>

pkgname=terminus-font
pkgver=4.28
pkgrel=1tm
arch=noarch
source=("http://www.is-vn.bg/hamster/terminus-font-$pkgver.tar.gz")
sourcetemplate=http://thenktor.dyndns.org/packages/$pkgname/
docs=("README")
url="http://www.is-vn.bg/hamster/"

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (a clean fixed width X11 font)"
"Terminus Font is designed for long (8 and more hours per day) work"
"with computers."
)

build() {
	cd $startdir/src/terminus-font-$pkgver
	./configure --prefix=/usr --psfdir=/usr/share/kbd/consolefonts --x11dir=/usr/share/fonts/misc
	make -j3
	make DESTDIR=$startdir/pkg install install-uni install-ref
}

# Doinst
doinst() {
	# Update mkfontscale and mkfontdir:
	if [ -x usr/bin/mkfontdir ]; then
		( cd usr/share/fonts/misc
		mkfontscale .
		mkfontdir .
		)
	fi

	# Update the X font indexes:
	if [ -x usr/bin/fc-cache ]; then
		usr/bin/fc-cache -f 1>/dev/null 2>&1
	fi
}