summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 487fee6d44be5695371059e09718b591b03df8e7 (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
# Maintainer: Devin Christensen <quixoten at gmail dot com>
pkgname=terminess-powerline-font-git
pkgver=r100.a44abd0
pkgrel=3
pkgdesc="Terminess Powerline"
arch=('any')
url='https://github.com/powerline/fonts'
license=('custom:SIL Open Font License, Version 1.1')
depends=(fontconfig xorg-font-utils )
makedepends=('git')
conflicts=(powerline-fonts-git)
install=$pkgname.install
source=('git+https://github.com/powerline/fonts.git')
md5sums=('SKIP')

pkgver() {
  cd fonts
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd $srcdir/fonts/Terminus
  find . -iname '*.pcf.gz' -execdir install -Dm644 {} $pkgdir/usr/share/fonts/misc/{} \;
  find . -iname '*.psf.gz' -execdir install -Dm644 {} $pkgdir/usr/share/kbd/consolefonts/{} \;
  install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}