summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8ed4d750c12fd7077865dadb52c16387ec01c59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Maintainer: NekoLOvO <nekolyin@qq.com>

pkgbase=ttf-sarasa_ui
pkgname=(${pkgbase}-{all,cl,sc,hc,tc,jp,kr})
pkgver=1.0.29
pkgrel=1
arch=('any')
url="https://github.com/be5invis/Sarasa-Gothic/"
license=('OFL')
depends=('fontconfig')
provides=('ttf-fonts')
source=(
    "${url}raw/refs/heads/main/LICENSE"
    "${url}releases/download/v${pkgver}/SarasaUi-TTF-${pkgver}.7z"
)
sha256sums=('32c932e0dbae4f6e6386964bbc2d04178707665a05ca65cf636241af13d50a53'
            '70c4cca8ae4487b02e44f3f00904e35990d5beea8611d01c1af49fc3e19d9320')

package_ttf-sarasa_ui-all() {
    pkgdesc="Sarasa UI (CJK)"
    mkdir -p "${pkgdir}/usr/share/fonts/${pkgbase}"
    install -Dm644 ${srcdir}/*.ttf "${pkgdir}/usr/share/fonts/${pkgbase}"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgbase}"
}

package_ttf-sarasa_ui-cl() {
    pkgdesc="更纱黑体UI (传统旧字形)"
    mkdir -p "${pkgdir}/usr/share/fonts/${pkgbase}"
    install -Dm644 ${srcdir}/*CL*.ttf "${pkgdir}/usr/share/fonts/${pkgbase}"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgbase}"
}

package_ttf-sarasa_ui-sc() {
    pkgdesc="更纱黑体UI (简体中文)"
    mkdir -p "${pkgdir}/usr/share/fonts/${pkgbase}"
    install -Dm644 ${srcdir}/*SC*.ttf "${pkgdir}/usr/share/fonts/${pkgbase}"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgbase}"
}

package_ttf-sarasa_ui-hc() {
    pkgdesc="更紗黑體UI (香港繁體中文)"
    mkdir -p "${pkgdir}/usr/share/fonts/${pkgbase}"
    install -Dm644 ${srcdir}/*HC*.ttf "${pkgdir}/usr/share/fonts/${pkgbase}"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgbase}"
}

package_ttf-sarasa_ui-tc() {
    pkgdesc="更紗黑體UI (台湾正體中文)"
    mkdir -p "${pkgdir}/usr/share/fonts/${pkgbase}"
    install -Dm644 ${srcdir}/*TC*.ttf "${pkgdir}/usr/share/fonts/${pkgbase}"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgbase}"
}

package_ttf-sarasa_ui-jp() {
    pkgdesc="更紗ゴシックUI (日本語)"
    mkdir -p "${pkgdir}/usr/share/fonts/${pkgbase}"
    install -Dm644 ${srcdir}/*J*.ttf "${pkgdir}/usr/share/fonts/${pkgbase}"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgbase}"
}

package_ttf-sarasa_ui-kr() {
    pkgdesc="사라사고딕UI (한국인)"
    mkdir -p "${pkgdir}/usr/share/fonts/${pkgbase}"
    install -Dm644 ${srcdir}/*K*.ttf "${pkgdir}/usr/share/fonts/${pkgbase}"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgbase}"
}