# Maintainer: Leonard Janis König pkgname='otf-apple-sf-arabic' pkgver=17.0d16e1 pkgrel=1 pkgdesc='Apples San Francisco typeface family. Arabic font.' arch=('any') url='https://developer.apple.com/fonts/' license=('custom:apple-restricted-font') _file='SF-Arabic.dmg' source=("https://devimages-cdn.apple.com/design/resources/download/$_file" 'license.awk' 'version.awk') sha256sums=('be583464111a9f90507c9a525c70ea3d3a6f54a3ff6353029c30ccd8bde2a32a' 'cd45a6edaa3829837b090a5a18d3c906816931e7a779b33b6ada23b49b5a5889' '55a4e9e108e50b07481044fad445636e502f2d95d7e8964e1d4cda3e9618b198') makedepends=('texlive-bin' 'p7zip') prepare() { cd ${srcdir} # These are dmg images, xar and cpio archives. Just use 7z. 7z x -y "$_file" 7z x -y 'SFArabicFonts/SF Arabic Fonts.pkg' 7z x -y 'Payload~' otfinfo -i Library/Fonts/SF-Arabic.ttf | \ awk -f license.awk > LICENSE } pkgver() { cd ${srcdir} otfinfo -i Library/Fonts/SF-Arabic.ttf | \ awk -f version.awk } package() { install -Dm655 "${srcdir}"/Library/Fonts/*.ttf \ -t "${pkgdir}/usr/share/fonts/TTF/" install -Dm644 LICENSE \ "${pkgdir}"/usr/share/licenses/${pkgname}/AppleFontLicense }