summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1021c5a886b904cc0e6822cad02c36de7d105f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=ttf-harmonyos-sans
_pkgname="HarmonyOS Sans"
pkgver=2024.06.19
pkgrel=2
pkgdesc="HarmonyOS Sans Fonts.华为鸿蒙字体"
arch=("any")
url="https://developer.huawei.com/consumer/cn/design/resource/"
license=("LicenseRef-custom")
conflicts=("${pkgname//ttf-/}")
source=(
    "${pkgname}-${pkgver}.zip::https://developer.huawei.com/images/download/next/HarmonyOS-Sans.zip"
)
sha256sums=('c8ac95f3715631f3787336e9689571c12ae818a0059713a726313605ce0eb8d3')
package() {
    export LC_CTYPE="zh_CN.UTF-8"
    find "${srcdir}" -type f -name "*.ttf" -exec install -Dm644 -t "${pkgdir}/usr/share/fonts/${pkgname//ttf-/}" {} +
    install -Dm644 "${srcdir}/${_pkgname} /${_pkgname// /_}/LICENSE.txt" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}