app=terminus-font
version=4.40
build=1sml
homepage="http://terminus-font.sourceforge.net/"
download="https://sourceforge.net/projects/terminus-font/files/terminus-font-$version/terminus-font-$version.tar.gz"
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

  applypatch $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
"
