summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ce3f208606587fa879cb74870be58a8d7d97a53 (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
# Maintainer: William Turner <willtur.will@gmail.com>
pkgname=ttf-dejavu-sans-code-git
_pkgname=DejaVuSansCode
pkgver=1.2.2.r1.87feb367
pkgrel=1
pkgdesc='Monospaced font with programming ligatures based on DejaVu Sans Mono'
arch=('any')
url='https://github.com/SSNikolaevich/DejaVuSansCode'
license=('custom')
depends=('fontconfig' 'xorg-font-utils')
makedepends=('git' 'fontforge' 'perl-font-ttf')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install=fonts.install
source=("git+https://github.com/SSNikolaevich/${_pkgname}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/${_pkgname}"
  make full-ttf
}

package() {
  cd "${srcdir}/${_pkgname}"
  install -d ${pkgdir}/usr/share/fonts/TTF/
  install -m644 build/*.ttf ${pkgdir}/usr/share/fonts/TTF/
  install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}