# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=font-sf-pro
pkgver=1
pkgrel=0
pkgdesc="SF Pro font by Apple"
url="https://developer.apple.com/fonts/"
arch="noarch"
license="proprietary"
makedepends="cpio p7zip"
source="https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
builddir="$srcdir/SFProFonts/Library/Fonts"
options="!check" # is font
unpack() {
cd "$srcdir"
7z x -y SF-Pro.dmg >/dev/null
cd SFProFonts
7z x -y "SF Pro Fonts.pkg" >/dev/null
cpio -idmv --no-absolute-filenames < "Payload~"
}
package() {
install -Dm644 *.ttf *.otf -t "$pkgdir"/usr/share/fonts/sf-pro
sha512sums="
d78082835cf5b305d7716d7ca72f0d7391e576ffd6a7eb3cc74711d48407fed5d236221d10bddebc51768ff5c05b1af04d784836322ade78df6e9fc967f20972 SF-Pro.dmg
"