46 lines
1.1 KiB
Bash
46 lines
1.1 KiB
Bash
# 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
|
|
}
|