summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f597d28c903a7252341f9bdf544696e036a9ba6e (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
# Contributor: orumin <dev@orum.in>

pkgname=ttf-kazesawa-git
_gitname=kazesawa
pkgver=alpha.v1.r15.g3789e6d
pkgrel=1
pkgdesc="Japanese TrueType font obtained by mixing M+ and Source Sans Pro"
arch=('any')
url="http://kazesawa.github.io/"
license=('custom')
depends=('fontconfig' 'xorg-font-utils')
makedepends=('fontforge')
source=('git+https://github.com/kazesawa/kazesawa.git')
md5sums=('SKIP')
install=ttf.install

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

build() {
  cd "${srcdir}/${_gitname}"
  make fetch_deps
  make ttf
}


package() {
    cd "${srcdir}/${_gitname}"

    install -dm755 "${pkgdir}/usr/share/fonts/TTF"
    install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"

    install -m644 ./out/*.ttf "${pkgdir}/usr/share/fonts/TTF"
    install -m644 ./LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}"
}