# Maintainer: Shuery Shuai <2463253700@qq.com> pkgname='ttf-sarasa-fixed-slab-j-nerd-font' pkgver='1.0.43_0' pkgrel='3' pkgdesc='Sarasa Gothic Nerd Font / 更纱书呆黑体:Fixed Slab (No Ligatures) / 等距更纱黑体粗衬线体(无连字);Japanese / 日文。' 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-fixed-slab-j-nerd-font.zip" 'LICENSE::https://raw.githubusercontent.com/be5invis/Sarasa-Gothic/main/LICENSE' ) noextract=("${pkgname}.zip") sha256sums=( '4c91bcb8117f9b32a949dc2d91b8a44bfd904d6e03551e331dc4fccb8ab49cf5' '32c932e0dbae4f6e6386964bbc2d04178707665a05ca65cf636241af13d50a53' ) 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" }