summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 826733fe2f7a533a5b9db0e642012a35003aa003 (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
# Contributor: katt <magunasu.b97@gmail.com>
# Contributor: Edward Pacman <edward@edward-p.xyz>
_pkgname='consolas-with-yahei'
pkgname=ttf-$_pkgname-powerline-git
pkgver=r14.b6e9163
pkgrel=1
pkgdesc="Consolas-with-Yahei with powerline patched with nerd-fonts)"
arch=(any)
url='https://github.com/crvdgc/Consolas-with-Yahei'
license=(unknown)
makedepends=(git)
provides=(ttf-$_pkgname)
conflicts=(ttf-$_pkgname)
source=("git+$url.git")
md5sums=('SKIP')

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

package() {
  mkdir -p "$pkgdir"/usr/share/fonts/$_pkgname
  chmod -R 755 "$pkgdir"/usr/
  cp Consolas-with-Yahei/ttf/Consolas-with-Yahei\ Nerd\ Font.ttf "$pkgdir"/usr/share/fonts/$_pkgname/consnerd.ttf
  cp Consolas-with-Yahei/ttf/Consolas-with-Yahei\ Bold\ Nerd\ Font.ttf "$pkgdir"/usr/share/fonts/$_pkgname/consnerdb.ttf
  cp Consolas-with-Yahei/ttf/Consolas-with-Yahei\ Italic\ Nerd\ Font.ttf "$pkgdir"/usr/share/fonts/$_pkgname/consnerdi.ttf
  cp Consolas-with-Yahei/ttf/Consolas-with-Yahei\ Bold\ Italic\ Nerd\ Font.ttf "$pkgdir"/usr/share/fonts/$_pkgname/consnerdz.ttf
}