summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorckath2021-06-02 21:31:34 +0200
committerckath2021-06-02 21:31:34 +0200
commit5629cf47ec7ccbb73fce43c5d91934e7607141b7 (patch)
tree6d426f64767c518ba171295f4fe71b8827fd0731
downloadaur-dina8-font.tar.gz
initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--75-yes-dina.conf12
-rw-r--r--PKGBUILD52
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7976d99bd67
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = dina8-font
+ pkgdesc = A monospace bitmap font, primarily aimed at programmers, only size 8
+ pkgver = 2.92
+ pkgrel = 10
+ url = https://www.dcmembers.com/jibsen/download/61/
+ arch = any
+ license = custom
+ makedepends = xorg-bdftopcf
+ conflicts = dina-font
+ source = dina-2.92-new.zip::https://www.dcmembers.com/jibsen/download/61/?wpdmdl=61
+ source = 75-yes-dina.conf
+ md5sums = 028424baac750e9fd0f54df03202e5d0
+ md5sums = d2ea97a9ee0595cbdb02168bb7a85f12
+
+pkgname = dina8-font
diff --git a/75-yes-dina.conf b/75-yes-dina.conf
new file mode 100644
index 00000000000..b0c05c10477
--- /dev/null
+++ b/75-yes-dina.conf
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- Accept Dina font -->
+ <selectfont>
+ <acceptfont>
+ <pattern>
+ <patelt name="family"><string>Dina</string></patelt>
+ </pattern>
+ </acceptfont>
+ </selectfont>
+</fontconfig>
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b13f5ec3bb6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Ckat <ckat@teknik.io>
+
+pkgname=dina8-font
+pkgver=2.92
+pkgrel=10
+pkgdesc="A monospace bitmap font, primarily aimed at programmers, only size 8"
+arch=('any')
+url="https://www.dcmembers.com/jibsen/download/61/"
+license=('custom')
+makedepends=('xorg-bdftopcf')
+conflicts=('dina-font')
+source=("dina-$pkgver-new.zip::https://www.dcmembers.com/jibsen/download/61/?wpdmdl=61"
+ 75-yes-dina.conf)
+md5sums=('028424baac750e9fd0f54df03202e5d0'
+ 'd2ea97a9ee0595cbdb02168bb7a85f12')
+
+_ex_pt() {
+ _pt=${1%.bdf}
+ _pt=${_pt#*-}
+ echo $_pt
+}
+
+build() {
+ cd "$srcdir/BDF"
+
+ sed -i 's/microsoft-cp1252/ISO8859-1/' *.bdf
+
+ for i in Dina_i400-8.bdf; do
+ bdftopcf -t -o DinaItalic$(_ex_pt $i).pcf $i
+ done
+ for i in Dina_i700-8.bdf; do
+ bdftopcf -t -o DinaBoldItalic$(_ex_pt $i).pcf $i
+ done
+ for i in Dina_r400-8.bdf; do
+ bdftopcf -t -o DinaMedium$(_ex_pt $i).pcf $i
+ done
+ for i in Dina_r700-8.bdf; do
+ bdftopcf -t -o DinaBold$(_ex_pt $i).pcf $i
+ done
+ gzip -n *.pcf
+}
+
+package() {
+ cd "$srcdir/BDF"
+ for i in *.gz; do
+ install -Dm 644 $i "$pkgdir/usr/share/fonts/misc/$i"
+ done
+ install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 "$srcdir/75-yes-dina.conf" "$pkgdir/usr/share/fontconfig/conf.avail/75-yes-dina.conf"
+ install -d "$pkgdir/usr/share/fontconfig/conf.default"
+ ln -s ../conf.avail/75-yes-dina.conf "$pkgdir/usr/share/fontconfig/conf.default/75-yes-dina.conf"
+}