summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 93a2c8d28de6a45834f66cf6659f10fb83e0819e (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Maintainer: Devin Christensen <quixoten at gmail dot com>
pkgname=powerline-fonts-git
pkgver=r100.a44abd0
pkgrel=1
pkgdesc="Powerline fonts for X11 and the console"
arch=('any')
url=('https://github.com/powerline/fonts')
license=('CPL')
depends=(fontconfig xorg-font-utils )
makedepends=('git')
conflicts=(
  monaco-powerline-font-git
  otf-droid-sans-mono-powerline-git
  otf-droidsansmono-powerline-git
  otf-fura-mono-powerline-git
  otf-inconsolata-dz-powerline-git
  otf-inconsolata-g-powerline-git
  otf-inconsolata-powerline-git
  otf-meslo-powerline-git
  otf-sauce-code-powerline-git
  otf-source-code-pro-powerline-git
  powerline-fonts
  source-code-pro-fonts-powerline
  terminess-powerline-font
  terminess-powerline-font-git
  ttf-anonymice-powerline-git
  ttf-anonymous-pro-powerline
  ttf-anonymous-pro-powerline-git
  ttf-dejavu-sans-mono-powerline-git
  ttf-dejavusansmono-powerline-git
  ttf-droid-sans-mono-dotted-powerline-git
  ttf-droid-sans-mono-slashed-powerline-git
  ttf-hack
  ttf-hack-powerline-git
  ttf-inconsolata-dz-powerline
  ttf-liberation-mono-powerline-git
  ttf-literation-mono-powerline-git
  ttf-meslo-powerline-git
  ttf-monofur-powerline-git
  ttf-powerline-fonts-git
  ttf-roboto-mono-powerline-git
  ttf-ubuntu-mono-derivative-powerline-git
  ttf-ubuntu-mono-powerline-git
)
install=$pkgname.install
source=('git://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
  find . -iname "*.ttf" -execdir install -Dm644 {} $pkgdir/usr/share/fonts/TTF/{} \;
  find . -iname "*.otf" -execdir install -Dm644 {} $pkgdir/usr/share/fonts/OTF/{} \;
  find . -iname "*.pcf.gz" -execdir install -Dm644 {} $pkgdir/usr/share/fonts/misc/{} \;
  find . -iname "*.psf.gz" -execdir install -Dm644 {} $pkgdir/usr/share/kbd/consolefonts/{} \;
}