summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5582e9609d0f342cdee4c333ca97717eb9da5f4 (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
# Maintainer: Kars Wang <jaklsy+aur at gmail dot com>

_gitname=Ysabeau
pkgbase=ysabeau-git
pkgname=("otf-${pkgbase}" "ttf-${pkgbase}")
pkgver=0.003.r107.gc620c84
pkgrel=1
pkgdesc="The essence of Garamond in an open-source sans-serif typeface."
url='https://github.com/CatharsisFonts/Ysabeau'
arch=('any')
license=('OFL-1.1 License')
makedepends=('git')
provides=("otf-ysabeau=${pkgver}" "ttf-ysabeau=${pkgver}")
source=("git+${url}.git")
sha256sums=('SKIP')

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

package_otf-ysabeau-git() {
    cd "${_gitname}"
    install -Dm644 fonts/otf/*.otf -t "$pkgdir"/usr/share/fonts/OTF
}

package_ttf-ysabeau-git() {
    cd "${_gitname}"
    install -Dm644 fonts/ttf/*.ttf -t "$pkgdir"/usr/share/fonts/TTF
}