[arch-commits] Commit in dina-font/trunk (LICENSE PKGBUILD)

Kyle Keen kkeen at nymeria.archlinux.org
Fri Sep 13 01:05:56 UTC 2013


    Date: Friday, September 13, 2013 @ 03:05:56
  Author: kkeen
Revision: 97099

upgpkg: dina-font 2.92-1

Modified:
  dina-font/trunk/PKGBUILD
Deleted:
  dina-font/trunk/LICENSE

----------+
 LICENSE  |    7 -------
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++----------
 2 files changed, 35 insertions(+), 17 deletions(-)

Deleted: LICENSE
===================================================================
--- LICENSE	2013-09-12 18:19:17 UTC (rev 97098)
+++ LICENSE	2013-09-13 01:05:56 UTC (rev 97099)
@@ -1,7 +0,0 @@
-The Dina font is free. You are welcome to use, distribute and modify it
-however you want, just don't use it for anything illegal or claim that
-you made it.
-
-The Dina font is provided 'as-is', without any express or implied
-warranty. In no event will the authors be held liable for any damages
-arising from the use of this font.

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-09-12 18:19:17 UTC (rev 97098)
+++ PKGBUILD	2013-09-13 01:05:56 UTC (rev 97099)
@@ -1,24 +1,49 @@
 # $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
 # Contributor: Xilon <xilonmu at gmail.com>
 # Contributor: Stefan Husmann <stefan-husmann at t-online.de>
-# Maintainer: Daniel J Griffiths <ghost1227 at archlinux.us>
 
 pkgname=dina-font
-pkgver=2.89
-pkgrel=6
+pkgver=2.92
+pkgrel=1
 pkgdesc="A monospace bitmap font, primarily aimed at programmers"
 arch=('any')
 url="http://www.donationcoder.com/Software/Jibz/Dina/index.html"
 license=('custom')
 depends=('xorg-fonts-encodings' 'xorg-fonts-alias' 'xorg-font-utils' 'fontconfig')
+makedepends=('xorg-bdftopcf')
 install=${pkgname}.install
-source=(http://ftp.fi.debian.org/gentoo/distfiles/dina-pcf-2.89.tar.gz LICENSE)
-md5sums=('d6c425c007a9a576b4bb88c88cf57076' 'd7f8fbff7893c52e94b29c30369f2037')
+source=(http://www.donationcoder.com/Software/Jibz/Dina/downloads/Dina.zip)
+md5sums=('028424baac750e9fd0f54df03202e5d0')
 
+_ex_pt() {
+    _pt=${1%.bdf}
+    _pt=${_pt#*-}
+    echo $_pt
+}
+
+build() {
+    cd "$srcdir/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
+    
+}
+
 package() {
-	cd "${srcdir}/Dina-PCF"
-	for i in *; do
-		install -Dm 644 $i "${pkgdir}/usr/share/fonts/local/$i"
-	done
-	install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    cd "$srcdir/BDF"
+    for i in *.pcf; do
+        install -Dm 644 $i "$pkgdir/usr/share/fonts/local/$i"
+    done
+    install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }




More information about the arch-commits mailing list