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


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 \;
}