@marmis Works as expected ;-) Thx a lot. Cheers hcjl
Search Criteria
Package Details: apple-fonts 7.0.6-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/apple-fonts.git (read-only, click to copy) |
|---|---|
| Package Base: | apple-fonts |
| Description: | Fonts for Apple platforms, including San Francisco and New York typefaces |
| Upstream URL: | https://developer.apple.com/fonts/ |
| Licenses: | custom |
| Provides: | ttf-font |
| Submitter: | ilbuonmarcio |
| Maintainer: | ilbuonmarcio |
| Last Packager: | ilbuonmarcio |
| Votes: | 57 |
| Popularity: | 1.05 |
| First Submitted: | 2021-03-13 19:14 (UTC) |
| Last Updated: | 2026-08-30 18:14 (UTC) |
Dependencies (1)
- 7zip (p7zip-natspecAUR, 7zip-natspecAUR, 7zip-zstd-binAUR, 7zip-zstdAUR) (make)
Required by (296)
- ac-launcher-bin (requires ttf-font)
- alacritty-nox-git (requires ttf-font) (check)
- apple-sf-script-extension-fonts
- aspia-client-bin (requires ttf-font)
- aspia-host-bin (requires ttf-font)
- awesome-luajit (requires ttf-font) (make)
- basilisk (requires ttf-font)
- bitsnpicas-git (requires ttf-font)
- brave-beta-bin (requires ttf-font)
- brave-bin (requires ttf-font)
- brave-nightly-bin (requires ttf-font)
- brave-origin-beta-bin (requires ttf-font)
- brave-origin-bin (requires ttf-font)
- brave-origin-nightly-bin (requires ttf-font)
- btrfs-assistant-git (requires ttf-font)
- cctv-viewer-git (requires ttf-font)
- cosmic-applet-colortemp (requires ttf-font)
- cosmic-applet-colortemp-git (requires ttf-font)
- cromite-bin (requires ttf-font)
- datcord-bin (requires ttf-font)
- Show 276 more...
Sources (4)
hcjl commented on 2026-10-03 14:11 (UTC)
marmis commented on 2026-09-18 15:14 (UTC) (edited on 2026-09-21 03:08 (UTC) by marmis)
7z seems to have issues extracting the .pkgs from version 27.0.1789118100. My workaround is using bsdtar for anything except the .dmg files.
prepare()
prepare() {
mkdir fonts licenses
for archive in *.dmg; do
7z e "${archive}" '*.pkg' '*/*.pkg' -y
echo
echo "Extracted ${archive}"
done
for package in *.pkg; do
package=${package%.pkg}
mkdir "${srcdir}/${package}"
cd "${srcdir}/${package}"
bsdtar -xvf "../${package}.pkg" Resources/English.lproj/License.rtf "*.pkg/"
mv -v Resources/English.lproj/License.rtf "${srcdir}/licenses/LICENSE.${package// /}.rtf"
cd *.pkg/
_fntver=$(grep -o -e ' version=".*">' PackageInfo)
_fntver=${_fntver:10:-2}
bsdtar -xvf Payload Library/Fonts/
mv -v Library/Fonts/* "$srcdir/fonts/"
echo
echo "${pkgname} version ${_fntver}"
done
}
aliu commented on 2026-08-31 19:45 (UTC)
Here's my patch:
diff --git a/PKGBUILD b/PKGBUILD
index 11ff93a..c33f6f9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,24 +2,31 @@
# Co-Maintainer: Cp Dong <cp-dong at outlook dot com>
pkgname=apple-fonts
-pkgver=7.0.5
+_sfVer=8.0.1
+_monoVer=6.0.1
+_nyVer=6.0.1
+pkgver=${_sfVer}
pkgrel=1
pkgdesc='Fonts for Apple platforms, including San Francisco and New York typefaces'
arch=(any)
url='https://developer.apple.com/fonts/'
license=('custom')
-provides=('ttf-font')
+provides=('ttf-font'
+ "otf-san-francisco=${_sfVer}"
+ "ttf-san-francisco-variable=${_sfVer}"
+ "otf-san-francisco-mono=${_monoVer}"
+ "otf-new-york=${_nyVer}")
depends=()
makedepends=(7zip)
_baseurl='https://devimages-cdn.apple.com/design/resources/download/'
-source=("SF-Pro-${pkgver}.dmg::${_baseurl}SF-Pro.dmg"
- "SF-Compact-${pkgver}.dmg::${_baseurl}SF-Compact.dmg"
- "SF-Mono-${pkgver}.dmg::${_baseurl}SF-Mono.dmg"
- "NY-${pkgver}.dmg::${_baseurl}NY.dmg")
-sha256sums=('5b4b19922a41b6b76e227934a2871b1405d7d6acb467eca4db153215f0d6c78b'
- '4567aae0616dd35afc34bad6bef547e72fd1e65845305a33973064518d1d5348'
- '6d4a0b78e3aacd06f913f642cead1c7db4af34ed48856d7171a2e0b55d9a7945'
- '1c2eedb4526cc0f326f8b7ea978f5a433756476a2c8c56072537608edb88f8f4')
+source=("SF-Pro-${_sfVer}.dmg::${_baseurl}SF-Pro.dmg"
+ "SF-Compact-${_sfVer}.dmg::${_baseurl}SF-Compact.dmg"
+ "SF-Mono-${_monoVer}.dmg::${_baseurl}SF-Mono.dmg"
+ "NY-${_nyVer}.dmg::${_baseurl}NY.dmg")
+sha256sums=('a9094f0de9b789d73544ee50fc52a0884d4a9f7fcf62de52974e3204f3a74a62'
+ '2c89003967be59a6867aa5de12066352d9a6b44b785cf2b9ff88ef0d77ff28fc'
+ '6d4a0b78e3aacd06f913f642cead1c7db4af34ed48856d7171a2e0b55d9a7945'
+ '1c2eedb4526cc0f326f8b7ea978f5a433756476a2c8c56072537608edb88f8f4')
noextract=("${source[@]##*/}")
prepare() {
avocadoboat commented on 2026-08-30 21:24 (UTC)
Thank you @marmis.
marmis commented on 2026-08-30 18:47 (UTC) (edited on 2026-08-30 18:49 (UTC) by marmis)
@ilbuonmarcio The current version is 8.0.1, not 7.0.6. At least for SF-Pro and SF-Compact, which are the ones being updated. Here's the fix for that and the licenses issue too.
diff --git a/PKGBUILD b/PKGBUILD
index 7059f77..78ca3da 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,3 +4,3 @@
pkgname=apple-fonts
-pkgver=7.0.6
+pkgver=8.0.1
pkgrel=1
@@ -9,3 +9,3 @@ arch=(any)
url='https://developer.apple.com/fonts/'
-license=('custom')
+license=('LicenseRef-Apple-Fonts-License-Agreement')
provides=('ttf-font')
@@ -32,3 +32,3 @@ prepare() {
_fntname=`grep -o -e "THE APPLE .* FONT" Resources/English.lproj/License.rtf | head -n 1`
- mv Resources/English.lproj/License.rtf "$srcdir/licenses/LICENSE.${_fontname// /-}"
+ mv Resources/English.lproj/License.rtf "$srcdir/licenses/LICENSE.${_fntname// /-}.rtf"
cd *.pkg/
SF-Mono and NY are still on 6.0.1. You could avoid redownloading unnecessarily by specifying the correct version in the sources array, but it's okay like this too.
marmis commented on 2026-07-22 15:59 (UTC) (edited on 2026-07-22 16:01 (UTC) by marmis)
Silent failures: makepkg only checks a function's final exit status, so a failed 7z step mid-loop goes unnoticed. Also rm -r tmp/{,.} errors on every iteration (refuses to remove ./..). Wrapping each iteration in a set -e subshell with || return 1 and using a per-archive temp dir fixes both.
Not really needed. Makepkg already has errexit (a.k.a. set -e) in run_function_safe. Only set -u is missing in this case, which would catch the license issue.
The subshell could also just be replaced with a local tmp fontname fontver declaration.
orlfman commented on 2026-07-22 15:38 (UTC) (edited on 2026-07-22 15:40 (UTC) by orlfman)
The package currently fails to build: Apple republished SF-Pro.dmg and SF-Compact.dmg in place (the internal font version went from 6.0.1 to 8.0.1), so two of the sha256sums no longer match. Current hashes:
SF-Pro.dmg 6311a4f0843a4d2e616a0b05c77512d31d2ea950459cf526cdb5b90996a0794f
SF-Compact.dmg fe517a5184be290e66fe89b8b4b6ea18548fced1ae1539499a71265e3317249f
A few other issues I noticed while fixing this:
- License typo as @marmis noted:
prepare()assigns_fntnamebut uses${_fontname// /-}, so all licenses are written to a single file namedLICENSE.and overwrite each other. The package ships only one (wrong) license file. noextractnever matches:${source[@]##*/}yields the URL basename (SF-Pro.dmg) rather than the local filename (SF-Pro-7.0.5.dmg). Should be${source[@]%%::*}.- Silent failures: makepkg only checks a function's final exit status, so a failed
7zstep mid-loop goes unnoticed. Alsorm -r tmp/{*,.*}errors on every iteration (refuses to remove./..). Wrapping each iteration in aset -esubshell with|| return 1and using a per-archive temp dir fixes both. - Apple now also distributes SF Arabic, SF Armenian, SF Georgian and SF Hebrew so those were added as well.
Full fixed PKGBUILD: https://pastebin.com/0ZyitqVG
marmis commented on 2026-07-01 01:58 (UTC) (edited on 2026-07-13 02:17 (UTC) by marmis)
Line 32 defines _fntname, but the next line tries to use it as _fontname, resulting in all licenses cobbled to LICENSE.. You could use (never mind)${_fontname// } (no -) to avoid this issue in the future.
Edit: could also keep the .rtf extensions and maybe set license=('LicenseRef-Apple-Fonts-License-Aggrement') instead of custom.
elav commented on 2026-06-12 20:42 (UTC)
SF-Pro-7.0.5.dmg sha256sums = 6311a4f0843a4d2e616a0b05c77512d31d2ea950459cf526cdb5b90996a0794f
SF-Compact-7.0.5.dmg sha256sums = fe517a5184be290e66fe89b8b4b6ea18548fced1ae1539499a71265e3317249f
Pinned Comments