blob: 7032339d034b0b189304f2ca4621c56308323f12 (
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
|
# Maintainer: RangHo Lee <hello@rangho.me>
pkgbase=suit
pkgver=2.0.1
pkgrel=4
pkgname=(
"otf-${pkgbase}"
"ttf-${pkgbase}"
"ttf-${pkgbase}-variable"
"woff2-${pkgbase}-variable"
"woff2-${pkgbase}"
)
pkgdesc="A Korean UI body typeface focused on clarity."
url="https://github.com/sunn-us/SUIT"
arch=('any')
license=('OFL')
source=(
"https://github.com/sunn-us/SUIT/releases/download/v${pkgver}/SUIT-otf.zip"
"https://github.com/sunn-us/SUIT/releases/download/v${pkgver}/SUIT-ttf.zip"
"https://github.com/sunn-us/SUIT/releases/download/v${pkgver}/SUIT-Variable-ttf.zip"
"https://github.com/sunn-us/SUIT/releases/download/v${pkgver}/SUIT-Variable-woff2.zip"
"https://github.com/sunn-us/SUIT/releases/download/v${pkgver}/SUIT-woff2.zip"
)
sha256sums=(
"447c85cc0ee71ffa612f38b554615a7257c42c2c7809fdc0fac466e78f26dcc0"
"5d125dce72c4feed1b5498d52be04c6fc3e672653670c2a916e1e4c65cb2bf1a"
"cb0f39627c398efa2f2960ac7b2fe67df718e06e0b4efdbf0efa260d3de43c73"
"98e53f2e66eae64276c73ae3bac770ecd9c6dab924274effaaab02457be0da01"
"54c9996c056cd676c0c0e598e80d88f47ebf406188d2ac641ef2c8e0a78994e7"
)
prepare() {
# Remove macOS resource fork
find . -type d -name '__MACOSX' -exec rm -rf {} +
}
package_otf-suit() {
install -Dm644 *.otf -t "$pkgdir"/usr/share/fonts/OTF
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_ttf-suit() {
find . -name '*.ttf' -not -name '*Variable*' -exec install -Dm644 -t "$pkgdir"/usr/share/fonts/TTF {} +
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_ttf-suit-variable() {
find . -name '*Variable.ttf' -exec install -Dm644 -t "$pkgdir"/usr/share/fonts/TTF {} +
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_woff2-suit-variable() {
find . -name '*Variable.woff2' -exec install -Dm644 -t "$pkgdir"/usr/share/fonts/WOFF2 {} +
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_woff2-suit() {
find . -name '*.woff2' -not -name '*Variable*' -exec install -Dm644 -t "$pkgdir"/usr/share/fonts/WOFF2 {} +
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|