initial commit

This commit is contained in:
Potato_2565 2026-02-21 19:18:30 +01:00
commit b7e588a321
6 changed files with 86 additions and 0 deletions

18
.SRCINFO Normal file
View file

@ -0,0 +1,18 @@
pkgbase = otf-apple-sf-pro
pkgdesc = Apples San Francisco typeface family. System font.
pkgver = 21.0d6e2
pkgrel = 1
url = https://developer.apple.com/fonts/
arch = any
license = custom:apple-restricted-font
makedepends = texlive-bin
makedepends = p7zip
options = !debug
source = otf-apple-sf-pro-21.0d6e2.dmg::https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg
source = license.awk
source = version.awk
sha256sums = 2e4d7853988b734dc1af33b921d8d4c0e4400eac312924a0eab4b73a51fd69ae
sha256sums = cd45a6edaa3829837b090a5a18d3c906816931e7a779b33b6ada23b49b5a5889
sha256sums = 55a4e9e108e50b07481044fad445636e502f2d95d7e8964e1d4cda3e9618b198
pkgname = otf-apple-sf-pro

8
.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
*.dmg
*.part
*.pkg.tar.gz
*.pkg.tar.zst
*.sh
pkg/
src/
.history/

15
Makefile Normal file
View file

@ -0,0 +1,15 @@
update:
@updpkgsums
@makepkg --printsrcinfo > .SRCINFO
clean:
@rm -rf src/ pkg/ *.pkg.tar.zst *.dmg
test:
@rm -rf *.pkg.tar.zst
@makepkg -si
publish:
@git add .
@echo "Update to $(shell sed -n 's/^pkgver=//p' PKGBUILD)"
@git commit -m "Update to $(shell sed -n 's/^pkgver=//p' PKGBUILD)"

35
PKGBUILD Normal file
View file

@ -0,0 +1,35 @@
# Maintainer: EEEntity <eeentity at 163 dot com>
pkgname='otf-apple-sf-pro'
pkgver=21.0d6e2
pkgrel=1
pkgdesc='Apples San Francisco typeface family. System font.'
arch=('any')
url='https://developer.apple.com/fonts/'
license=('custom:apple-restricted-font')
source=("${pkgname}-${pkgver}.dmg::https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
'license.awk'
'version.awk')
sha256sums=('2e4d7853988b734dc1af33b921d8d4c0e4400eac312924a0eab4b73a51fd69ae'
'cd45a6edaa3829837b090a5a18d3c906816931e7a779b33b6ada23b49b5a5889'
'55a4e9e108e50b07481044fad445636e502f2d95d7e8964e1d4cda3e9618b198')
makedepends=('texlive-bin' 'p7zip')
options=(!debug)
prepare() {
# These are dmg images, xar and cpio archives. Just use 7z.
7z x -y "${pkgname}-${pkgver}.dmg" > /dev/null
7z x -y 'SFProFonts/SF Pro Fonts.pkg' > /dev/null
7z x -y 'SFProFonts.pkg/Payload' > /dev/null
7z x -y 'Payload~' > /dev/null
otfinfo -i Library/Fonts/SF-Pro-Display-BoldItalic.otf | \
awk -f license.awk > LICENSE
}
package() {
install -Dm655 "${srcdir}"/Library/Fonts/*.otf \
-t "${pkgdir}/usr/share/fonts/OTF/"
install -Dm655 "${srcdir}"/Library/Fonts/*.ttf \
-t "${pkgdir}/usr/share/fonts/TTF/"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/AppleFontLicense"
}

7
license.awk Executable file
View file

@ -0,0 +1,7 @@
#! /usr/bin/env -S awk -f
/License Description:.*/ { inlicense = 1;
for (i = 3; i <= NF; i++) $(i-2)=$i
}
/Vendor ID:.*/ { inlicense = 0; }
{ if (inlicense) print $0 }

3
version.awk Executable file
View file

@ -0,0 +1,3 @@
#! /usr/bin/env -S awk -f
/Version:.*/ { print $3 }