- 修正 `install-font.sh` 采用单次 `sudo pacman -U` 的批量安装说明。
- 补充 `options=('!debug')` 与 `conflicts` 历史遗留包名的相关说明。
- 更新 Mermaid 流程图,反映“先全部构建、后一次性安装”的两阶段流程。
- 同步中英文双语文档 (`README.md` 与 `README-en.md`)。
36 lines
1.3 KiB
Bash
36 lines
1.3 KiB
Bash
# Maintainer: Shuery Shuai <[email protected]>
|
|
|
|
pkgname='ttf-sarasa-mono-cl-nerd-font'
|
|
pkgver='1.0.43_0'
|
|
pkgrel='4'
|
|
pkgdesc='Sarasa Gothic Nerd Font / 更纱书呆黑体:Mono (Full-width Em Dash) / 等距更纱黑体(全宽破折号);Classical Orthography / 传统旧字形。'
|
|
arch=('any')
|
|
url='https://github.com/jonz94/Sarasa-Gothic-Nerd-Fonts'
|
|
license=('OFL-1.1')
|
|
provides=('ttf-font')
|
|
conflicts=('ttf-sarasa-gothic-nerd-fonts')
|
|
source=(
|
|
"${pkgname}.zip::https://github.com/jonz94/Sarasa-Gothic-Nerd-Fonts/releases/download/v1.0.43-0/sarasa-mono-cl-nerd-font.zip"
|
|
'LICENSE::https://raw.githubusercontent.com/be5invis/Sarasa-Gothic/main/LICENSE'
|
|
)
|
|
noextract=("${pkgname}.zip")
|
|
sha256sums=(
|
|
'146f5135b04642b14c6ed415f698bbdc3c1e5c4fd3300ea516af4dd335da0e69'
|
|
'32c932e0dbae4f6e6386964bbc2d04178707665a05ca65cf636241af13d50a53'
|
|
)
|
|
options=('!debug')
|
|
|
|
package() {
|
|
local font_dir font_destination
|
|
font_dir=$(mktemp -d "${srcdir}/${pkgname}.XXXXXX")
|
|
font_destination="${pkgdir}/usr/share/fonts/${pkgname}"
|
|
|
|
bsdtar -xf "${srcdir}/${pkgname}.zip" -C "${font_dir}/"
|
|
install -d "${font_destination}"
|
|
find "${font_dir}" -maxdepth 1 -type f -name '*.ttf' \
|
|
-exec install -m644 {} "${font_destination}/" \;
|
|
rm -rf "${font_dir}"
|
|
|
|
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|