summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 13a6268de12fd109178f09f89d95c37f995ac6a6 (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
pkgname=monaco-powerline-font-git
_gitname=monaco-powerline-font
pkgver=r16.616d338
pkgrel=3
pkgdesc="Monaco Powerline fonts for X11 and the console"
arch=('any')
url='https://gist.github.com/arkhan/229a0729ec79c6fcec81'
source=("${_gitname}::git+http://gist.github.com/229a0729ec79c6fcec81")
md5sums=('SKIP')
license=('CPL')
depends=('fontconfig' 'xorg-font-utils')
makedepends=('git')
install=$pkgname.install


build() {
    cd "$srcdir"
    msg2 "Connecting to github.com GIT server...."
    if [ -d "$srcdir/$_gitname" ] ; then
        cd "$_gitname" && git pull origin master || return 1
        msg2 "The local files are updated."
    else
        git clone "$_gitname" || return 1
        cd "$_gitname"
    fi
}

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

package() {
  install -d "$pkgdir/usr/share/fonts/OTF"

  cd $srcdir/$_gitname
  find . -iname "*.otf" -exec install -m644 {} $pkgdir/usr/share/fonts/OTF \;
}