void-packages/srcpkgs/font-spleen/template
2019-06-02 08:37:20 +02:00

26 lines
804 B
Bash

# Template file for 'font-spleen'
pkgname=font-spleen
version=1.0.5
revision=1
archs=noarch
wrksrc="spleen-${version}"
font_dirs="/usr/share/fonts/X11/spleen"
hostmakedepends="bdftopcf"
depends="font-util"
short_desc="Monospaced bitmap fonts"
maintainer="Renato Aguiar <renato@renag.me>"
license="BSD-2-Clause"
homepage="https://github.com/fcambus/spleen"
distfiles="https://github.com/fcambus/spleen/releases/download/${version}/spleen-${version}.tar.gz"
checksum=cf26c313da53857353e48a93540845cf6f773908fe19d2a509249f061776dfe0
do_install() {
vmkdir usr/share/fonts/X11/spleen
for f in *.bdf; do
out=${f%.bdf}.pcf.gz
bdftopcf -t $f | gzip -n9 > $out
vinstall $out 644 usr/share/fonts/X11/spleen
done
vinstall fonts.alias-spleen 644 usr/share/fonts/X11/spleen fonts.alias
vlicense LICENSE
}