ptrcports/font-sf-pro/APKBUILD

32 lines
827 B
Text
Raw Normal View History

2022-10-09 14:37:25 +00:00
# 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/"
2023-05-03 01:11:45 +00:00
arch="aarch64 x86_64"
2022-10-09 14:37:25 +00:00
license="proprietary"
2022-10-09 16:52:20 +00:00
makedepends="cpio p7zip"
2022-10-09 14:37:25 +00:00
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
"