blob: 3db53600831775ac7c6f435ee074330ffcd85d85 (
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
|
# Maintainer: Molyuu <mi@molyuu.cyou>
pkgname=ttf-sarasa-gothic-sc
pkgver=1.0.27
pkgrel=1
url=https://github.com/be5invis/Sarasa-Gothic
pkgdesc="A CJK programming font based on Iosevka and Source Han Sans. (only Sarasa Gothic SC inside)"
arch=(any)
depends=()
license=("OFL")
makedepends=("p7zip")
provides=("ttf-sarasa-gothic-sc")
conflicts=("ttf-sarasa-gothic")
source=("https://github.com/be5invis/Sarasa-Gothic/releases/download/v$pkgver/SarasaGothicSC-TTF-$pkgver.7z"
"LICENSE"
)
sha256sums=('e342d7e5d8de5120f50bf219767e4ee91f8d94c4e824abed96cfa01f684cc43c'
'9caccb70771a676613a8a9a9863f20c49c861383af99c1dd7cc354226b375832')
noextract=("SarasaGothicSC-TTF-$pkgver.7z")
prepare() {
if [ -d "sarasa-$pkgver" ]; then
rm -rf "sarasa-$pkgver"
fi
mkdir "sarasa-$pkgver"
cd "sarasa-$pkgver"
7z x "$srcdir/SarasaGothicSC-TTF-$pkgver.7z"
}
package() {
install -d "$pkgdir/usr/share/fonts/${pkgname:4}"
install -m644 $srcdir/sarasa-$pkgver/SarasaGothicSC-*.ttf "$pkgdir/usr/share/fonts/${pkgname:4}"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|