# Maintainer: Andy Kluger # Contributor: Markus Weimar pkgname=ttf-iosevka-term-custom-git pkgver=r1970.13517c54 pkgrel=1 pkgdesc='A slender monospace sans-serif and slab-serif typeface inspired by Pragmata Pro, M+ and PF DIN Mono.' arch=('any') url='https://be5invis.github.io/Iosevka/' license=('custom:OFL') makedepends=('afdko' 'git' 'nodejs' 'npm' 'otfcc' 'ttfautohint') depends=() conflicts=('ttf-iosevka-term-custom') provides=('ttf-iosevka-term-custom') replaces=('ttf-iosevka-termlig-custom-git') source=( 'git+https://github.com/be5invis/Iosevka' 'private-build-plans.toml.example' ) sha256sums=( 'SKIP' '9ebb80bc4a23e05064c73c90fd5644b05d0741af9733f980d52f954bcf7f7259' ) pkgver() { cd Iosevka printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { buildplans="$HOME/.config/iosevka/private-build-plans.toml" if [[ -f "$buildplans" ]]; then cp "$buildplans" Iosevka/ else echo ">>> $buildplans not found, using private-build-plans.toml.example" cp private-build-plans.toml.example Iosevka/private-build-plans.toml fi } build() { cd Iosevka npm install npm update npm run build -- ttf::iosevka-term-custom } package() { install -d "${pkgdir}/usr/share/fonts/TTF" install -m644 Iosevka/dist/*/ttf/*.ttf "${pkgdir}/usr/share/fonts/TTF/" install -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 Iosevka/LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/" }