# Maintainer: aksr # Maintainer: Caleb Maclennan _pkgname=libertinus pkgname="otf-$_pkgname-git" pkgver=7.020.r16.ge809fbe pkgrel=1 pkgdesc='The Libertinus font family, a fork of Linux Libertine and Biolinum with OpenType math' arch=('any') url="https://github.com/alerque/$_pkgname" license=('OFL') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") makedepends=('fontship') source=("$pkgname::git+$url") sha256sums=('SKIP') pkgver() { cd "$pkgname" git describe --long --tags --match="v[0-9]*" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "$pkgname" fontship make -- PROJECT=Libertinus static-otf } package() { cd "$pkgname" install -Dm644 -t "$pkgdir/usr/share/fonts/OTF/" "${_pkgname^}"*.otf install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" OFL.txt AUTHORS.txt install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md preview.svg FONTLOG.txt documentation/*.pdf }