From 1d25355f6267f99370a4e884280514abbedd19ad Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Tue, 29 Oct 2024 03:55:38 +0100 Subject: [PATCH] font-sf-mono: new ptrcport --- font-sf-mono/APKBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 font-sf-mono/APKBUILD 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 +"