woff2-misans-lao
MEDIUM
maintainer taotieren
3 votes
base
ttf-misans
scanned 2026-10-21 21:33:09.570113
Why flagged
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
Triggered rules
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:38
source=("${_zipname}-${pkgver}.zip::https://hyperos.mi.com/font-download/MiSans_Global_ALL.zip"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: taotieren <admin@taotieren.com>
2
3
pkgbase=ttf-misans
4
_Mi=MiSans
5
_mi=(${_Mi,,})
6
_MultiLang=(Lao Arabic Devanagari Gujarati Gurmukhi Khmer L3 Latin Myanmar TC Thai Tibetan)
7
_multilang=(${_MultiLang[@],,})
8
9
_mi_ml=()
10
for mi in "${_mi}"; do
11
_mi_ml=(${mi})
12
for multilang in "${_multilang[@]}"; do
13
_mi_ml+=("${mi}-${multilang}")
14
done
15
done
16
17
_ftype=(ttf otf woff woff2)
18
19
_pkgbase=()
20
for ftype in "${_ftype[@]}"; do
21
for ml in "${_mi_ml[@]}"; do
22
_pkgbase+=("${ftype}-${ml}")
23
done
24
done
25
26
pkgname=(misans ${_pkgbase[@]} misans-fontconfig)
27
pkgver=4.003
28
pkgrel=2
29
pkgdesc="MiSans Global is a global language font customization project led by Xiaomi and co-created with Mona font and Han Yi font."
30
arch=(any)
31
url='https://hyperos.mi.com/font/download'
32
license=(custom)
33
#provides=()
34
#conflicts=()
35
depends=(fontconfig)
36
makedepends=(unzip)
37
_zipname="MiSansGlobal_ALL"
38
source=("${_zipname}-${pkgver}.zip::https://hyperos.mi.com/font-download/MiSans_Global_ALL.zip"
39
"LICENSE.pdf::https://hyperos.mi.com/font-download/MiSans字体知识产权许可协议.pdf")
40
41
sha256sums=('2322a01e3138661a3d76980cfd8167f704bbea60445df94a00c79d3d6ae85b57'
42
'4a93a27cd2bd81b3b5ecfd0a853144a876fa26938a93a68443c67d74172fcb86')
43
44
build() {
45
rm -rf ${_zipname}
46
mv -f "MiSans Global _ALL" ${_zipname}
47
cd ${_zipname}
48
unzip -o '*.zip'
49
mv " MiSans Lao" "MiSans Lao"
50
mv "MiSana Arabic" "MiSans Arabic"
51
mv "MiSans Thai " "MiSans Thai"
52
}
53
54
function _package {
55
optdepends+=(misans-fontconfig)
56
local _pkgname=$1
57
pkgdesc+=" - ${_pkgname}"
58
local ext="${_pkgname%%-*}"
59
local _fml="${_pkgname##*-}"
60
_Mi_ML=()
61
if [ ${_fml} == tc ];then
62
_fml=${_fml^^}
63
_Mi_ML="${_Mi} ${_fml}"
64
elif [ ${_fml} == ${_mi} ];then
65
_Mi_ML=${_Mi}
66
else
67
_fml=${_fml^}
68
_Mi_ML="${_Mi} ${_fml}"
69
fi
70
71
cd "${srcdir}/${_zipname}/${_Mi_ML}"
72
local fonts=("*.${ext}")
73
local installdir="${ext^^}"
74
# Prepare destination directory
75
install -dm755 "${pkgdir}/usr/share/fonts/${installdir}"
76
# Install fonts
77
find . -name "*.${ext}" -type f -exec install -Dm644 {} -t "${pkgdir}/usr/share/fonts/${installdir}" \;
78
install -Dm644 "${srcdir}/LICENSE.pdf" -t "${pkgdir}/usr/share/licenses/${_pkgname}"
79
}
80
81
for _pkgname in "${_pkgbase[@]}"; do
82
eval "function package_${_pkgname}() { _package ${_pkgname}; }"
83
done
84
85
package_misans-fontconfig () {
86
pkgdesc+=" - Fontconfig configuration"
87
provides=()
88
conflicts=()
89
depends=(fontconfig)
90
install -Dm755 /dev/stdin "${pkgdir}/usr/share/fontconfig/conf.avail/75-misans.conf" <<EOF
91
<?xml version="1.0" encoding="UTF-8"?>
92
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
93
<fontconfig>
94
<alias>
95
<family>Mi Sans</family>
96
<prefer><family>Mi Sans</family></prefer>
97
</alias>
98
</fontconfig>
99
EOF
100
install -dm755 "${pkgdir}/usr/share/fontconfig/conf.default"
101
ln -rs /usr/share/fontconfig/conf.avail/75-misans.conf "${pkgdir}/usr/share/fontconfig/conf.default/75-misans.conf"
102
}
103
104
package_misans () {
105
pkgdesc+=" - meta package"
106
provides=()
107
conflicts=()
108
depends=(${_pkgbase[@]} misans-fontconfig)
109
}
110
# vim: ts=4 sw=4 et
111
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-21 21:33:09 | Medium | 1 |
| 2026-06-19 23:51:18 | Clean | 2 |
| 2026-06-19 19:07:35 | Low | 2 |
| 2026-06-19 18:54:17 | Low | 2 |
| 2026-06-18 16:11:54 | Medium | 1 |