pkgbuilds/ttf-fantasque-sans-git/PKGBUILD

29 lines
837 B
Text
Raw Normal View History

# Maintainer: Parantapa Bhattacharya <pb at parantapa dot net>
pkgname=ttf-fantasque-sans-git
2014-06-16 09:55:50 +02:00
pkgver=20140609
pkgrel=1
pkgdesc="A font family with a great monospaced variant for programmers."
arch=('any')
url="https://github.com/belluzj/fantasque-sans"
license=('SIL OPEN FONT LICENSE Version 1.1')
depends=('fontconfig' 'xorg-font-utils')
makedepends=('git' 'fontforge' 'ttfautohint' 'sfnt2woff' 'ttf2eot')
install=$pkgname.install
source=(git+https://github.com/belluzj/fantasque-sans.git)
md5sums=('SKIP')
pkgver() {
cd "$srcdir/fantasque-sans"
git log -1 --pretty=format:"%cd" --date=short | sed s/-//g
}
build() {
cd "${srcdir}/fantasque-sans"
make
}
package() {
install -d "${pkgdir}/usr/share/fonts/TTF"
cp -dpr --no-preserve=ownership "${srcdir}/fantasque-sans/"*.ttf "${pkgdir}/usr/share/fonts/TTF"
}