# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=font-opensans
pkgver=0_git20210927
pkgrel=1
_commit=ebedbda589fe5bd861b02325aca98c86ad845251
pkgdesc="Humanist Sans Serif Typeface"
url="https://github.com/googlefonts/opensans"
arch="noarch"
license="Apache-2.0"
options="!check" # is a font
depends="fontconfig mkfontscale"
# for backward compatibility (Alpine <3.16)
replaces="ttf-opensans"
provides="ttf-opensans=$pkgver-r$pkgrel"
source="$pkgname-$pkgver.tar.gz::https://github.com/googlefonts/opensans/archive/$_commit.tar.gz"
builddir="$srcdir/opensans-$_commit"

package() {
	install -D -m644 fonts/ttf/*.ttf -t "$pkgdir"/usr/share/fonts/opensans
}

sha512sums="
4816a876a3a3d4c88aba9f70546045a87c3cee070ce33218a5a987d36cbdca4a6187c194a730dfdc898544b528c3f0922f4f32bbd006c8bcf27a81acab15b2fb  font-opensans-0_git20210927.tar.gz
"
