summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorckath2019-08-01 00:43:44 +0200
committerckath2019-08-01 00:43:44 +0200
commit95c2e2610a42eab55b4bcf3a343155d793df940e (patch)
treed0ea47e2f927deaf8302c918ef4807a50373896f
downloadaur-95c2e2610a42eab55b4bcf3a343155d793df940e.tar.gz
initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD35
-rwxr-xr-xotbconvert.pe7
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f69fcbb74cf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = dina-font-otb
+ pkgdesc = A monospace bitmap font, primarily aimed at programmers, in bdf format
+ pkgver = 2.92
+ pkgrel = 7
+ url = https://www.dcmembers.com/jibsen/download/61/
+ arch = any
+ license = custom
+ makedepends = fontforge
+ depends = xorg-font-utils
+ depends = fontconfig
+ conflicts = dina-font
+ conflicts = dina-powerline
+ source = dina-2.92-new.zip::https://www.dcmembers.com/jibsen/download/61/?wpdmdl=61
+ source = otbconvert.pe
+ md5sums = 028424baac750e9fd0f54df03202e5d0
+ md5sums = ef3dae0059b22d7c232cbd04d9cffff8
+
+pkgname = dina-font-otb
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d20f2931375
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Ckat <ckat@teknik.io>
+
+pkgname=dina-font-otb
+pkgver=2.92
+pkgrel=7
+pkgdesc="A monospace bitmap font, primarily aimed at programmers, in bdf format"
+arch=('any')
+url="https://www.dcmembers.com/jibsen/download/61/"
+license=('custom')
+depends=('xorg-font-utils' 'fontconfig')
+makedepends=('fontforge')
+conflicts=('dina-font' 'dina-powerline')
+source=("dina-$pkgver-new.zip::https://www.dcmembers.com/jibsen/download/61/?wpdmdl=61" "otbconvert.pe")
+md5sums=('028424baac750e9fd0f54df03202e5d0'
+ 'ef3dae0059b22d7c232cbd04d9cffff8')
+
+_ex_pt() {
+ _pt=${1%.bdf}
+ _pt=${_pt#*-}
+ echo $_pt
+}
+
+build() {
+ cd "$srcdir/BDF"
+ sed -i 's/microsoft-cp1252/ISO8859-1/' *.bdf
+ ../otbconvert.pe *.bdf
+}
+
+package() {
+ cd "$srcdir/BDF"
+ for i in *.otb; do
+ install -Dm 644 $i "$pkgdir/usr/share/fonts/misc/$i"
+ done
+ install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
diff --git a/otbconvert.pe b/otbconvert.pe
new file mode 100755
index 00000000000..2d26b344303
--- /dev/null
+++ b/otbconvert.pe
@@ -0,0 +1,7 @@
+#!/usr/bin/fontforge
+i=1
+while ( i<$argc )
+ Open($argv[i])
+ Generate($argv[i]:r + ".otb")
+ i = i+1
+endloop