mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
Add nerd-fonts; Move discord-{canary,ptb} apps/
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "nerd-fonts.spec"
|
||||
update = ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
%global flist 3270 Agave AnonymousPro Arimo AurulentSansMono BigBlueTerminal BitstreamVeraSansMono CascadiaCode CodeNewRoman Cousine DaddyTimeMono DejaVuSansMono DroidSansMono FantasqueSansMono FiraCode FiraMono Go-Mono Gohu Hack Hasklig HeavyData Hermit IBMPlexMono Inconsolata InconsolataGo InconsolataLGC Iosevka JetBrainsMono Lekton LiberationMono Lilex MPlus Meslo Monofur Monoid Mononoki NerdFontsSymbolsOnly Noto OpenDyslexic Overpass ProFont ProggyClean RobotoMono ShareTechMono SourceCodePro SpaceMono Terminus Tinos Ubuntu UbuntuMono VictorMono iA-Writer
|
||||
%global desc Nerd Fonts is a project that patches developer targeted fonts with a high number of glyphs (icons).
|
||||
|
||||
Name: nerd-fonts
|
||||
Version: 2.2.2
|
||||
Release: %autorelease
|
||||
URL: https://nerdfonts.com/
|
||||
Source0: https://github.com/ryanoasis/nerd-fonts/archive/refs/tags/v%{version}.tar.gz
|
||||
License: OFLv1.1
|
||||
Summary: All packaged Nerd fonts
|
||||
Requires: %{lua:
|
||||
local x = ""
|
||||
local ver = rpm.expand("%{version}")
|
||||
for font in (rpm.expand("%{flist}")):gmatch("[^ ]+") do
|
||||
x = x .. font:lower().."="..ver.." "
|
||||
end
|
||||
print(x)
|
||||
}
|
||||
|
||||
%description
|
||||
%{desc} Specifically to add a high number of extra glyphs from popular
|
||||
'iconic fonts' such as Font Awesome, Devicons, Octicons, and others.
|
||||
|
||||
%{lua:
|
||||
for font in (rpm.expand("%{flist}")):gmatch("[^ ]+") do
|
||||
print("%package -n "..font:lower().."-nerd-fonts\n")
|
||||
print("Summary:\tPatched Nerd fonts: "..font)
|
||||
print("\n%description -n "..font:lower().."-nerd-fonts\n")
|
||||
print("%{desc}. The package contains the patched version of "..font..".\n")
|
||||
end
|
||||
}
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-v%{version}
|
||||
|
||||
%build
|
||||
find patched-fonts -name "* Windows Compatible.*" -delete
|
||||
find patched-fonts -name "font-info.md" -delete
|
||||
find patched-fonts -name "readme.md" -delete
|
||||
|
||||
search() {
|
||||
for folder in $1/*; do
|
||||
if [[ -d "$folder/complete" ]]; then
|
||||
mv $folder/complete/* $folder/
|
||||
rmdir $folder/complete
|
||||
else
|
||||
[[ -d $folder ]] && search $folder
|
||||
fi
|
||||
done
|
||||
}
|
||||
search patched-fonts
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}/%{_datadir}/fonts/nerd-fonts/
|
||||
cp patched-fonts/* %{buildroot}/%{_datadir}/fonts/nerd-fonts/
|
||||
|
||||
|
||||
%files
|
||||
%doc readme.md
|
||||
%license LICENSE
|
||||
|
||||
%{lua:
|
||||
for font in (rpm.expand("%{flist}")):gmatch("[^ ]+") do
|
||||
print("%files -n "..font:lower().."-nerd-fonts\n")
|
||||
print("%doc readme.md\n")
|
||||
print("%license LICENSE\n")
|
||||
print("%{_datadir}/fonts/nerd-fonts/"..font.."\n")
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jan 4 2023 windowsboy111 <windowsboy111@fyralabs.com>
|
||||
- Initial package
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("ryanoasis/nerd-fonts"));
|
||||
Reference in New Issue
Block a user