APP=terminus-font
VERSION=4.40
BUILD=1sml
HOMEPAGE="http://terminus-font.sourceforge.net/"
DOWNLOAD="https://sourceforge.net/projects/terminus-font/files/terminus-font-4.40/terminus-font-4.40.tar.gz/download"
DESC="a clean fixed width bitmap font"
REQUIRES="python3 bdftopcf mkfontscale fontconfig"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION

  patch -p1 < $SRCDIR/terminus-font.Makefile.paths.diff
  fixbuilddirpermissions

  make
  make install install-uni install-ref DESTDIR="$PKG"

  cp OFL.TXT $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
66643c360761f598181f8216e3aed7e4dcb58af02deb7d5f62e6bb805c9bd5750a2e990eca1e0d2dc649c4156d55309eb93d506346450c431bcdbc867e511a33  terminus-font-4.40.tar.xz
193ef103fc11834fdaeae812f0b77d2604a7208cc8fd80f829595e6fc52389014159f3f970c5ff82c7edaef0d0478b26eac24636b4a842ef4d80759c188fb4e7  terminus-font.Makefile.paths.diff
"
