# Description: A clean, fixed width bitmap font, designed for long (8 and more hours per day) work with computers
# URL: https://terminus-font.sourceforge.net/
# Maintainer: Matt Housh, jaeger at crux dot ninja
# Depends on: python3 xorg-bdftopcf xorg-mkfontscale

name=xorg-font-terminus
version=4.49.1
release=1
source=(http://downloads.sourceforge.net/terminus-font/terminus-font-$version.tar.gz)

build () {
	cd terminus-font-$version
	chmod +x configure
	./configure --prefix=/usr \
		--x11dir=/usr/share/fonts/X11/terminus
	make pcf
	make DESTDIR=$PKG install-pcf
	cd $PKG/usr/share/fonts/X11/terminus
	/usr/bin/mkfontdir
	sed -e 's|.pcf.gz||' fonts.dir|grep terminus > fonts.alias
}
