# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=dina
pkgver=2.93
pkgrel=0
pkgdesc="Bitmap-based programming font"
url="https://www.dcmembers.com/jibsen/download/61/"
arch="noarch"
options="!check" # No tests
license="MIT"
depends="encodings font-alias fontconfig mkfontscale"
makedepends="bdftopcf"
source="$pkgname-$pkgver.zip::https://www.dcmembers.com/jibsen/download/61/?wpdmdl=61&refresh=5c64600776bf51550082055"
builddir="$srcdir/BDF"

build() {
	for i in *.bdf; do
		bdftopcf -o ${i%.bdf}.pcf $i
		gzip ${i%.bdf}.pcf
	done
}

package() {
	mkdir -p "$pkgdir"/usr/share/fonts/X11/misc
	for i in *.pcf.gz; do
		install -Dm644 "$i" "$pkgdir"/usr/share/fonts/X11/misc
	done
}

sha512sums="ff4e3b6031c815c9c5d469852f094243022a1ac889fb6667c734ac1498fa99d1253abf4d02e8eadb55d7d4d7d80be4fac32730bc24660451d78d2600ceb0ee6f  dina-2.93.zip"