void-packages/srcpkgs/cherry-font/template

24 lines
745 B
Bash

# Template file for 'cherry-font'
pkgname=cherry-font
version=1.2
revision=1
noarch=yes
wrksrc="cherry-${version}"
hostmakedepends="bdftopcf"
depends="font-util"
font_dirs="/usr/share/fonts/X11/misc"
short_desc="Yet another bitmap font, made for Latin 1"
maintainer="Chinmay Pai <chinmaydpai@gmail.com>"
license="MIT"
homepage="https://github.com/turquoise-hexagon/cherry"
distfiles="https://github.com/turquoise-hexagon/cherry/archive/${version}.tar.gz"
checksum=76a5f6587da48ded5c99a0517b5bc2f4ce65afb507a2210d76a16570b8369d27
do_install() {
vmkdir usr/share/fonts/X11/misc
for f in cherry-10-{b,r} cherry-11-{b,r} cherry-13-{b,r}; do
bdftopcf -t $f.bdf | gzip -n9 >${DESTDIR}/usr/share/fonts/X11/misc/$f.pcf.gz
done
vlicense LICENSE
}