-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathsarasa-gothic-fonts.spec
60 lines (49 loc) · 1.69 KB
/
sarasa-gothic-fonts.spec
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
Name: sarasa-gothic-fonts
Version: 1.0.19
Release: 1%?dist
URL: https://github.com/be5invis/Sarasa-Gothic
Source0: %url/releases/download/v%version/Sarasa-TTC-%version.7z
Source1: %url/releases/download/v%version/Sarasa-SuperTTC-%version.7z
Source2: https://raw.githubusercontent.com/be5invis/Sarasa-Gothic/v%version/LICENSE
Source3: https://raw.githubusercontent.com/be5invis/Sarasa-Gothic/v%version/README.md
License: OFL-1.1
Summary: Sarasa Gothic / 更纱黑体 / 更紗黑體 / 更紗ゴシック / 사라사 고딕
BuildArch: noarch
BuildRequires: p7zip-plugins
%description
A CJK programming font based on Iosevka and Source Han Sans.
%package -n sarasa-gothic-super-fonts
Summary: Sarasa Gothic / 更纱黑体 / 更紗黑體 / 更紗ゴシック / 사라사 고딕
%description -n sarasa-gothic-super-fonts
A CJK programming font based on Iosevka and Source Han Sans.
%prep
mkdir ttc
cd ttc
7z e %SOURCE0
cd ..
mkdir super
cd super
7z e %SOURCE1
%build
%install
mkdir -p %buildroot/%_datadir/{fonts/sarasa-gothic{,-super},{licenses,doc}/sarasa-gothic{,-super}-fonts}
cd ttc
install -Dm644 *.ttc %buildroot/%_datadir/fonts/sarasa-gothic/
cd ..
cd super
install -Dm644 *.ttc %buildroot/%_datadir/fonts/sarasa-gothic-super/
cd ..
install -Dm644 %SOURCE2 %buildroot/%_datadir/licenses/%name/
install -Dm644 %SOURCE3 %buildroot/%_datadir/doc/%name/
install -Dm644 %SOURCE2 %buildroot/%_datadir/licenses/sarasa-gothic-super-fonts/
install -Dm644 %SOURCE3 %buildroot/%_datadir/doc/sarasa-gothic-super-fonts/
%files
%doc README.md
%license LICENSE
/%{_datadir}/fonts/sarasa-gothic/
%files -n sarasa-gothic-super-fonts
%doc README.md
%license LICENSE
/%{_datadir}/fonts/sarasa-gothic-super/
%changelog
%autochangelog