From f20684fc41f42dbbca2a9c2f99916802ccf617a9 Mon Sep 17 00:00:00 2001 From: Lee Wang Date: Sat, 22 Apr 2017 18:25:13 -0400 Subject: [PATCH] New package: dina-font-2.92 --- srcpkgs/dina-font/template | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 srcpkgs/dina-font/template diff --git a/srcpkgs/dina-font/template b/srcpkgs/dina-font/template new file mode 100644 index 0000000000..191d7e90dd --- /dev/null +++ b/srcpkgs/dina-font/template @@ -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 " +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 +}