From 4834895d7f3f99537a7db1a82799d69e1a2c6968 Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Thu, 5 Jun 2025 02:08:39 -0500 Subject: [PATCH] Add: Geist fonts (#5236) * Add: Geist fonts * Add packager field and only build on x86 * Fix provides section --- anda/fonts/geist/anda.hcl | 6 +++++ anda/fonts/geist/geist.spec | 52 ++++++++++++++++++++++++++++++++++++ anda/fonts/geist/update.rhai | 1 + 3 files changed, 59 insertions(+) create mode 100644 anda/fonts/geist/anda.hcl create mode 100644 anda/fonts/geist/geist.spec create mode 100644 anda/fonts/geist/update.rhai diff --git a/anda/fonts/geist/anda.hcl b/anda/fonts/geist/anda.hcl new file mode 100644 index 0000000000..0f62482d3b --- /dev/null +++ b/anda/fonts/geist/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "geist.spec" + } +} diff --git a/anda/fonts/geist/geist.spec b/anda/fonts/geist/geist.spec new file mode 100644 index 0000000000..54d8d27bae --- /dev/null +++ b/anda/fonts/geist/geist.spec @@ -0,0 +1,52 @@ +Name: geist-font +Version: 1.5.0 +Release: 1%?dist +URL: https://vercel.com/font +Source0: https://github.com/vercel/geist-font/archive/refs/tags/%version.tar.gz +License: OFL-1.1 +Summary: Geist is a new font family for Vercel, created by Vercel in collaboration with Basement Studio +BuildRequires: make python3 python3.10 python3.10-devel meson cairo cairo-devel gcc +BuildArch: noarch +Provides: geist = %evr +Packager: Owen Zimmerman + +%description +Geist is a new font family for Vercel, created by Vercel in collaboration with Basement Studio. + +Geist Sans is a sans-serif typeface designed for legibility and simplicity. It is a modern, geometric typeface +that is based on the principles of classic Swiss typography. It is designed to be used in +headlines, logos, posters, and other large display sizes. + +%package mono +Requires: %{name} = %{version}-%{release} +Summary: Geist Mono is a monospaced typeface that has been crafted to be the perfect partner to Geist Sans +Provides: geist-mono = %evr +Provides: geist-mono-fonts = %evr + +%description mono +Geist Mono is a monospaced typeface that has been crafted to be the perfect partner to Geist Sans. +It is designed to be used in code editors, diagrams, terminals, and other textbased interfaces where code is represented. + +%prep +%autosetup -n %name-%version + +%build +%make_build + +%install +mkdir -p %{buildroot}/usr/share/fonts/Geist/ +mkdir -p %{buildroot}/usr/share/fonts/GeistMono/ +install -Dm644 fonts/Geist/ttf/*.ttf %{buildroot}%{_datadir}/fonts/Geist/ +install -Dm644 fonts/GeistMono/ttf/*.ttf %{buildroot}%{_datadir}/fonts/GeistMono/ + +%files +%doc readme.md AUTHORS.txt CONTRIBUTORS.txt requirements-test.txt requirements.txt OFL.txt +%license LICENSE.txt +%{_datadir}/fonts/Geist/* + +%files mono +%{_datadir}/fonts/GeistMono/* + +%changelog +* Wed Jun 04 2025 Owen Zimmerman +- Package Geist fonts diff --git a/anda/fonts/geist/update.rhai b/anda/fonts/geist/update.rhai new file mode 100644 index 0000000000..0740bc084d --- /dev/null +++ b/anda/fonts/geist/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("vercel/geist-font"));