summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a26e64af3e31af37b4ec9d306418d0f7b7e937fd (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
# Maintainer: Devin Christensen <quixoten at gmail dot com>
pkgname=ttf-hack-powerline-git
pkgver=r100.a44abd0
pkgrel=3
pkgdesc="Hack for Powerline"
arch=('any')
url='https://github.com/powerline/fonts'
license=('custom:SIL OFL, v1.1' 'custom:Bitstream License')
depends=(fontconfig xorg-font-utils )
makedepends=('git')
conflicts=(powerline-fonts powerline-fonts-git ttf-hack)
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/Hack
  find . -iname '*.ttf' -execdir install -Dm644 {} $pkgdir/usr/share/fonts/TTF/{} \;
  install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}