diff --git a/font-sf-mono/APKBUILD b/font-sf-mono/APKBUILD new file mode 100644 index 0000000..adff704 --- /dev/null +++ b/font-sf-mono/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Patrycja Rosa +# Maintainer: Patrycja Rosa +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 +"