-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnaver-nanum-gothic-fonts.yaml
32 lines (32 loc) · 1.72 KB
/
naver-nanum-gothic-fonts.yaml
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
name: naver-nanum-gothic-fonts
buildsystem: simple
sources:
# http://appdown.naver.com/naver/font/NanumFont/setup/NanumFontSetup_TTF_ALL_hangeulcamp.exe
- type: archive
url: https://deb.debian.org/debian/pool/main/f/fonts-nanum/fonts-nanum_20180306.orig.tar.xz
sha256: 2761e62f3f3f500c7a50d40d5ee8bbd87abe22ab42a78df0496cf80c95fec6f0
# http://help.naver.com/ops/step2/faq.nhn?faqId=15879
- type: file
url: https://src.fedoraproject.org/rpms/naver-nanum-fonts/raw/7ce17e48ef699a6560ef6f88287f911bf3365c45/f/naver-nanum-fonts-license.txt
sha256: cf742596498bb17a940284b19d0ac5c3d37259d152f17101bbf2981a215aa0a6
dest-filename: COPYING
- type: file
url: https://src.fedoraproject.org/rpms/naver-nanum-fonts/raw/7ce17e48ef699a6560ef6f88287f911bf3365c45/f/naver-nanum-fonts-gothic-fontconfig.conf
sha256: 7dfe51f67fe53300a2d707a1ac7676805ea8a1e6f869e4808ce9e01bc43fff22
dest-filename: 65-2-naver-nanum-gothic.conf
dest: fonts-conf.d
- type: shell
commands:
- sed -i -re 's!"../(fonts.dtd)"!"\1"!' "fonts-conf.d/65-2-naver-nanum-gothic.conf";
build-commands:
- |
regexp="^NanumGothic$";
find . -xtype f \( -iname '*.otf' -o -iname '*.ttc' -o -iname '*.ttf' -o -iname '*.ttx' \) -print0 | sort -zufV | while IFS= read -r -d '' file; do
f="$( basename "${file}" )";
[[ "${f%.*}" =~ ${regexp} ]] || continue;
[[ ! -f "${FLATPAK_DEST}/share/fonts/${f}" && ! -f "/usr/share/fonts/${f}" ]] || continue;
install -p -D -m 0644 "${file}" -t "${FLATPAK_DEST}/share/fonts/";
done;
- install -p -D -m 0644 "fonts-conf.d"/*.conf -t "${FLATPAK_DEST}/etc/fonts/conf.d/";
post-install:
- install -p -D -m 0644 "COPYING" -t "${FLATPAK_DEST}/share/licenses/naver-nanum-gothic-fonts/";