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