# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=font-adobe-source-code-pro
pkgver=2.040
# hardcoded below, update manually
pkgrel=1
pkgdesc="Monospaced font family for user interface and coding environments"
url="https://adobe-fonts.github.io/source-code-pro/"
arch="noarch"
license="OFL-1.1"
depends="font-util"
options="!check"
source="https://github.com/adobe-fonts/source-code-pro/archive/refs/tags/2.040R-u/1.060R-i/1.024R-vf.tar.gz"
builddir="$srcdir"

package() {
	for x in "$builddir"/source-*/OTF/*.otf; do
		install -Dm644 "$x" -t "$pkgdir"/usr/share/fonts/OTF
	done
}

sha512sums="
c5a23595993faf6b1d5d7151bed6391f959d040ecae042e0eca9196d5da2d364dbd6a162cb81e777b92c928ed6b2f904a5a3e4fd944dad826a21223475166fc4  1.024R-vf.tar.gz
"
