nerd-fonts: split symbols font
This commit is contained in:
parent
45444e8e57
commit
346fcb4080
2 changed files with 20 additions and 7 deletions
1
srcpkgs/nerd-fonts-symbols-ttf
Symbolic link
1
srcpkgs/nerd-fonts-symbols-ttf
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
nerd-fonts
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'nerd-fonts'
|
# Template file for 'nerd-fonts'
|
||||||
pkgname=nerd-fonts
|
pkgname=nerd-fonts
|
||||||
version=3.0.2
|
version=3.0.2
|
||||||
revision=1
|
revision=2
|
||||||
depends="nerd-fonts-ttf nerd-fonts-otf"
|
depends="nerd-fonts-ttf nerd-fonts-otf"
|
||||||
short_desc="Iconic font aggregator, collection and patcher"
|
short_desc="Iconic font aggregator, collection and patcher"
|
||||||
maintainer="cinerea0 <cinerea0@protonmail.com>"
|
maintainer="cinerea0 <cinerea0@protonmail.com>"
|
||||||
|
@ -17,19 +17,31 @@ do_install() {
|
||||||
vmkdir usr/lib/NerdFonts
|
vmkdir usr/lib/NerdFonts
|
||||||
|
|
||||||
# get all patched fonts
|
# get all patched fonts
|
||||||
find patched-fonts -name '*.otf' -exec install -Dm644 '{}' ${DESTDIR}/usr/share/fonts/NerdFonts/otf \;
|
find patched-fonts -name '*.otf' -exec install -Dm644 '{}' "${DESTDIR}/usr/share/fonts/NerdFonts/otf" \;
|
||||||
find patched-fonts -name '*.ttf' -exec install -Dm644 '{}' ${DESTDIR}/usr/share/fonts/NerdFonts/ttf \;
|
find patched-fonts -name '*.ttf' -exec install -Dm644 '{}' "${DESTDIR}/usr/share/fonts/NerdFonts/ttf" \;
|
||||||
|
rm "${DESTDIR}"/usr/share/fonts/NerdFonts/ttf/SymbolsNerdFont*.ttf
|
||||||
|
|
||||||
# install patching scripts
|
# install patching scripts
|
||||||
for sh in bin/scripts/lib/i_*.sh; do
|
for sh in bin/scripts/lib/i_*.sh; do
|
||||||
vinstall $sh 744 usr/lib/NerdFonts
|
vinstall "$sh" 744 usr/lib/NerdFonts
|
||||||
done
|
done
|
||||||
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nerd-fonts-symbols-ttf_package() {
|
||||||
|
short_desc+=" - TTF symbols-only font"
|
||||||
|
font_dirs="/usr/share/fonts/NerdFonts/ttf/symbols"
|
||||||
|
depends="font-util"
|
||||||
|
pkg_install() {
|
||||||
|
vmkdir usr/share/fonts/NerdFonts/ttf/symbols
|
||||||
|
vcopy "patched-fonts/NerdFontsSymbolsOnly/*.ttf" usr/share/fonts/NerdFonts/ttf/symbols
|
||||||
|
vinstall 10-nerd-font-symbols.conf 644 usr/share/fontconfig/conf.avail
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
nerd-fonts-otf_package() {
|
nerd-fonts-otf_package() {
|
||||||
short_desc="Iconic font aggregator, collection and patcher - otf fonts"
|
short_desc+=" - OTF fonts"
|
||||||
font_dirs="/usr/share/fonts/NerdFonts/otf"
|
font_dirs="/usr/share/fonts/NerdFonts/otf"
|
||||||
depends="font-util"
|
depends="font-util"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
@ -38,9 +50,9 @@ nerd-fonts-otf_package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
nerd-fonts-ttf_package() {
|
nerd-fonts-ttf_package() {
|
||||||
short_desc="Iconic font aggregator, collection and patcher - ttf fonts"
|
short_desc+=" - TTF fonts"
|
||||||
font_dirs="/usr/share/fonts/NerdFonts/ttf"
|
font_dirs="/usr/share/fonts/NerdFonts/ttf"
|
||||||
depends="font-util"
|
depends="font-util nerd-fonts-symbols-ttf"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/share/fonts/NerdFonts/ttf
|
vmove usr/share/fonts/NerdFonts/ttf
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue