summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca48096419839c003e781e91f55f9ea67026006c (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
# Maintainer: Campbell Barton <ideasman42@gmail.com>
_pkgname=triskweline-code-font
pkgname=$_pkgname
pkgver=8.559eb7d
pkgrel=1
pkgdesc="A monospaced bitmap font, modified from Triskweline for better code readability."
arch=('any')
url="https://github.com/ideasman42/triskweline-code-font"
license=('CC0')
depends=('fontconfig')
makedepends=()  # 'xorg-bdftopcf'
install=$pkgname.install
source=("git+https://github.com/ideasman42/$_pkgname.git")
noextract=()
md5sums=('SKIP')

pkgver() {
  cd $_pkgname
  echo $(git rev-list --count master).$(git rev-parse --short master)
}

package() {
  cd "$srcdir/$_pkgname"

  ## disable for now, causes some issues
  # for f in bdf/*.bdf; do
  #   bdftopcf $f -o "${f%.bdf}.pcf"
  # done

  install -d "$pkgdir/usr/share/fonts/local"
  install -m644 bdf/*.bdf "$pkgdir/usr/share/fonts/local/"
}