Merge pull request #6244 from wang-gretzky/dina-font

New package: dina-font-2.92
This commit is contained in:
Enno Boland 2017-05-09 12:13:07 +02:00 committed by GitHub
commit c958ddb2f9

View file

@ -0,0 +1,45 @@
# Template file for 'dina-font'
pkgname=dina-font
version=2.92
revision=1
noarch="yes"
font_dirs="/usr/share/fonts/X11/misc"
hostmakedepends="bdftopcf font-util unzip"
depends="font-util"
short_desc="A monospace bitmap font, primarily aimed at programmers"
maintainer="Lee Wang <lee.wang.gretzky@gmail.com>"
homepage="http://www.donationcoder.com/Software/Jibz/Dina/index.html"
license="Custom"
distfiles="http://www.donationcoder.com/Software/Jibz/Dina/downloads/Dina.zip"
checksum=1f51bba53f75a64d2d8bd037e8e0f84b6f8064e50a72ee954033bede173508cf
wrksrc="."
_ex_pt() {
_pt=${1%.bdf}
_pt=${_pt#*-}
echo $_pt
}
do_install() {
cd BDF
sed -i 's/microsoft-cp1252/ISO8859-1/' *.bdf
for i in Dina_i400-*.bdf; do
bdftopcf -t -o DinaItalic$(_ex_pt $i).pcf $i
done
for i in Dina_i700-*.bdf; do
bdftopcf -t -o DinaBoldItalic$(_ex_pt $i).pcf $i
done
for i in Dina_r400-*.bdf; do
bdftopcf -t -o DinaMedium$(_ex_pt $i).pcf $i
done
for i in Dina_r700-*.bdf; do
bdftopcf -t -o DinaBold$(_ex_pt $i).pcf $i
done
for i in *.pcf; do
gzip "$i"
done
vmkdir usr/share/fonts/X11/misc
install -m644 *.pcf.gz ${DESTDIR}/usr/share/fonts/X11/misc
vlicense ../LICENSE
}