nerd-fonts-sf-mono-ligatures
maintainer Relms
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads source fonts and tools from official project hosts (Apple, GitHub) to build a custom font;虽有非标准主机警告,但所有源可验证且仅生成数据文件,无远程代码执行风险。
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads source fonts and tools from official project hosts (Apple, GitHub) to build a custom font;虽有非标准主机警告,但所有源可验证且仅生成数据文件,无远程代码执行风险。
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:27
source=("SF-Mono-$_fontver.dmg::https://developer.apple.com/design/downloads/SF-Mono.dmg"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Daryl Ronningen <relms at relms dot dev>
2
# Contributor: Christian Brassat <christian dot brassat at gmail dot com>
3
# Contributor: Nico <d3sox at protonmail dot com>
4
5
pkgname=nerd-fonts-sf-mono-ligatures
6
pkgdesc="Monospaced variant of San Francisco. Sourced directly from Apple, patched with the Nerd Fonts Patcher and Fira Code ligatures"
7
8
# Nerd font patcher version
9
pkgver=3.3.0
10
pkgrel=2
11
12
# SF Mono version (extracted from PackageInfo)
13
_fontver=6.0.1.1726709071
14
15
# Ligaturizer version
16
_ligver=5
17
18
# FiraCode version
19
_firaver=6.2
20
21
arch=('any')
22
url='https://developer.apple.com/fonts/'
23
license=('custom')
24
makedepends=('git' '7zip' 'python' 'fontforge' 'parallel')
25
conflicts=('nerd-fonts-sf-mono')
26
provides=('nerd-fonts-sf-mono')
27
source=("SF-Mono-$_fontver.dmg::https://developer.apple.com/design/downloads/SF-Mono.dmg"
28
"https://github.com/ryanoasis/nerd-fonts/releases/download/v$pkgver/FontPatcher.zip"
29
"https://github.com/ToxicFrog/Ligaturizer/archive/refs/tags/v${_ligver}.tar.gz"
30
"https://github.com/tonsky/FiraCode/releases/download/$_firaver/Fira_Code_v$_firaver.zip")
31
sha256sums=('6d4a0b78e3aacd06f913f642cead1c7db4af34ed48856d7171a2e0b55d9a7945'
32
'ce4284e7d1a8816d29bb3a358e33a44e55804792e7925ed0022ba1b3ab1a9d34'
33
'da7c20e7622f7381e6905fbbed736dc50dd8515f412b040adbfe31dfd9b9efb4'
34
'0949915ba8eb24d89fd93d10a7ff623f42830d7c5ffc3ecbf960e4ecad3e3e79')
35
36
build() {
37
_ligaturizer="Ligaturizer-${_ligver}"
38
39
#--------------------
40
# Free the base font
41
#
42
43
# remove previous files
44
rm -rf SFMonoFonts
45
46
# extract dmg
47
7z x "SF-Mono-$_fontver.dmg"
48
49
# extract pkg
50
bsdtar xvPf "SFMonoFonts/SF Mono Fonts.pkg"
51
bsdtar xvPf "SFMonoFonts.pkg/Payload"
52
53
#--------------------
54
# nerd-patch the font
55
#
56
57
mkdir -p "$srcdir/patched"
58
printf "%b" "\e[1;33m==>\e[0m patching all fonts\n"
59
parallel -j$(nproc) python "$srcdir/font-patcher" -c {} -out "$srcdir/patched" ::: "$srcdir/Library/Fonts"/*.otf
60
61
#--------------------
62
# ligaturize the nerd-patched font
63
#
64
65
mkdir -p "$srcdir/ligaturized"
66
printf "%b" "\e[1;33m==>\e[0m ligaturizing all fonts\n"
67
68
# Convert FiraCode TTF to OTF
69
mkdir -p $srcdir/otf
70
for f in $srcdir/ttf/*.ttf
71
do
72
file=${f##*/}
73
base=${file%.*}
74
fontforge -c "import fontforge; from sys import argv; f = fontforge.open(argv[1]); f.generate(argv[2])" $f $srcdir/otf/$base.otf
75
done
76
77
# we have to manually move the donor fonts into the ligaturizer directory
78
# for the different weights to be picked up correctly
79
# it's kinda ugly, i know
80
cd "$srcdir/$_ligaturizer"
81
mkdir -p fonts/fira/distr/otf
82
cp $srcdir/otf/FiraCode*.otf fonts/fira/distr/otf
83
84
parallel -j$(nproc) fontforge -lang py -script ligaturize.py \
85
--output-dir "$srcdir/ligaturized" --output-name "SFMonoNerdFont" {} \
86
::: "$srcdir/patched/"*.otf
87
}
88
89
package() {
90
# install fonts
91
install -d "$pkgdir/usr/share/fonts/apple"
92
install -m644 "ligaturized"/*.otf "$pkgdir/usr/share/fonts/apple/"
93
}
94
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |