ptrcports/alpine/font-sf-mono/APKBUILD

31 lines
830 B
Text

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