summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d7d2d777bbf5ce43cbdc13dba07bbb96e2dd144b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Ckat <ckat@teknik.io>

pkgname=dina8-font-otb
pkgver=2.92
pkgrel=10
pkgdesc="A monospace bitmap font, primarily aimed at programmers, only size 8 (OTB Format)"
arch=('any')
url="https://www.dcmembers.com/jibsen/download/61/"
license=('custom')
depends=('fontconfig')
makedepends=('xorg-fonttosfnt')
conflicts=('dina-font-otb')
source=("dina-$pkgver-new.zip::https://www.dcmembers.com/jibsen/download/61/?wpdmdl=61")
md5sums=('028424baac750e9fd0f54df03202e5d0')

_ex_pt() {
    _pt=${1%.bdf}
    _pt=${_pt#*-}
    echo $_pt
}

build() {
    cd "$srcdir/BDF"
    sed -i 's/dina/dina-otb/g;s/Dina/Dina-OTB/g' *.bdf
    for f in *-8.bdf; do
        fonttosfnt -o "${f/bdf/otb}" "$f"
    done
}

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"
}