blob: 2c54c9d3c4ff959d6a313af498271b9b0659da8d (
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
|
# Maintainer: h-a <ha1029.dev at aol dot com>
pkgname=ttf-ricty-nerd
pkgver=3.3.0
pkgrel=1
pkgdesc="Japanese TrueType font for developers by mixing Inconsolata Nerd Font and Migu 1M."
arch=("any")
url="https://rictyfonts.github.io/"
license=("OFL-1.1 AND IPA")
depends=("fontconfig")
makedepends=("ttf-inconsolata-nerd>=3.3.0-1" "fontforge")
install=ttf-ricty-nerd.install
source=(
"https://rictyfonts.github.io/files/ricty_generator.sh"
"ricty_generator.patch"
"OFL-1.1.txt"
"IPA_Font_License_Agreement_v1.0.txt"
"https://github.com/itouhiro/mixfont-mplus-ipa/releases/download/v2020.0307/migu-1m-20200307.zip"
)
sha256sums=(
"86bf0fed84ef806690b213798419405d7ca2a1a4bed4f6a28b87c2e2d07ad60d"
"f210b692c45eb1f70b0f5cca2229afe322529435a3c43202b45b410b1226e73b"
"29bd0cfd0fb2a45f9b057c834a057724bae1f63b525a8ac83d3e7525706d9f80"
"4c84dd528ec3044638ec346fc1ee27cd1eb95dfc04cbc6a881b3ca7a7f517e54"
"e4806d297e59a7f9c235b0079b2819f44b8620d4365a8955cb612c9ff5809321"
)
prepare() {
cd "${srcdir}"
ln -sfv /usr/share/fonts/TTF/InconsolataNerdFont-Regular.ttf Inconsolata-Regular.ttf
ln -sfv /usr/share/fonts/TTF/InconsolataNerdFont-Bold.ttf Inconsolata-Bold.ttf
patch -u --follow-symlinks -o ricty_nerd_generator.sh < ricty_generator.patch
chmod +x ricty_nerd_generator.sh
}
build() {
cd "${srcdir}"
./ricty_nerd_generator.sh -a auto
}
package() {
install -d "${pkgdir}"/usr/share/fonts/TTF
install -m644 "${srcdir}"/RictyNerdFont-Regular.ttf "${pkgdir}"/usr/share/fonts/TTF
install -m644 "${srcdir}"/RictyNerdFont-Bold.ttf "${pkgdir}"/usr/share/fonts/TTF
install -m644 "${srcdir}"/RictyNerdFont-BoldOblique.ttf "${pkgdir}"/usr/share/fonts/TTF
install -m644 "${srcdir}"/RictyNerdFont-Oblique.ttf "${pkgdir}"/usr/share/fonts/TTF
install -m644 "${srcdir}"/RictyDiscordNerdFont-Regular.ttf "${pkgdir}"/usr/share/fonts/TTF
install -m644 "${srcdir}"/RictyDiscordNerdFont-Bold.ttf "${pkgdir}"/usr/share/fonts/TTF
install -m644 "${srcdir}"/RictyDiscordNerdFont-BoldOblique.ttf "${pkgdir}"/usr/share/fonts/TTF
install -m644 "${srcdir}"/RictyDiscordNerdFont-Oblique.ttf "${pkgdir}"/usr/share/fonts/TTF
install -d "${pkgdir}"/usr/share/licenses/"${pkgname}"
install -m644 OFL-1.1.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/OFL-1.1.txt
install -m644 IPA_Font_License_Agreement_v1.0.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/IPA_Font_License_Agreement_v1.0.txt
}
|