summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7d29634ed6bdf216ca4c76385151c746ca339e3 (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
# Maintainer: Khamkou Uladzislau <hamkov@vivaldi.net>

pkgname=terminus-font-otb-narrow
pkgver=4.48
pkgrel=1

pkgdesc='Monospace bitmap font (OTB version with 1px space between characters)'
url=http://terminus-font.sourceforge.net/
arch=(any)
license=('custom:OFL' 'GPL2')
makedepends=(fonttosfnt)
conflicts=(terminus-font-otb)
provides=(terminus-font-otb)
source=("https://downloads.sourceforge.net/project/terminus-font/terminus-font-$pkgver/terminus-font-$pkgver.tar.gz")
sha256sums=('34799c8dd5cec7db8016b4a615820dfb43b395575afbb24fc17ee19c869c94af')

build() {
  cd "terminus-font-$pkgver"
  for f in `ls *.bdf`; do
    fonttosfnt -b -c -g 2 -m 2 -o ${f%%.bdf}.otb $f
  done
}

package() {
  cd "terminus-font-$pkgver"
  for f in *.otb; do
      install -D -m0644 $f "$pkgdir/usr/share/fonts/${pkgname}/$f"
  done
  install -Dm644 OFL.TXT "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}