# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=otf-source-serif-pro
pkgver=3.000
pkgrel=0
pkgdesc="Serif font family for typesetting"
url="https://adobe-fonts.github.io/source-serif-pro/"
arch="noarch"
options="!check" # No tests
license="OFL-1.1"
depends="fontconfig"
makedepends=""
source="https://github.com/adobe-fonts/source-serif-pro/releases/download/${pkgver}R/${pkgname#*-}-${pkgver}R.zip"

package() {
	cd "$srcdir"/OTF
	mkdir -p "$pkgdir"/usr/share/fonts/X11/OTF/${pkgname#*-}
	for i in *.otf; do
		install -Dm644 "$i" "$pkgdir"/usr/share/fonts/X11/OTF/${pkgname#*-}
	done
}

sha512sums="865ea8ab6d5b8107b85a494f3b54da83a479a613c198c657d16fc6abe10022d0bbb1e441a328371a33a0d393467da599eba6458be31835cdd7391cfde4a6eec8  source-serif-pro-3.000R.zip"