From: chrysos349 <chrysos349@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New-package: ttf-nerd-fonts-symbols-3.0.2, removed-packages: revbump due to nerd-fonts{,-ttf,-otf} removal
Date: Mon, 18 Sep 2023 23:03:22 +0200 [thread overview]
Message-ID: <20230918210322.MfR12fpCqCMGzRYlFJlyByK9kLzhCs6CQz0xngGc35Y@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46118@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1364 bytes --]
There is an updated pull request by chrysos349 against master on the void-packages repository
https://github.com/chrysos349/void-packages ttf-nerd-fonts-symbols
https://github.com/void-linux/void-packages/pull/46118
New-package: ttf-nerd-fonts-symbols-3.0.2, removed-packages: revbump due to nerd-fonts{,-ttf,-otf} removal
@cinerea0
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
WHY?
`nerd-fonts` is a bloated package (2GB, REALLY?) which includes a ton of fonts, and scripts which can't be even executed by a non-root user due to permissions. BTW, these scripts have nothing to do with patching fonts, but with cheat sheet functionality. I don't even understand how it it was allowed into the repository in the first place!
`ttf-nerd-fonts-symbols` is the only part that's truly necessary. It provides unique glyphs. My template includes also `fontconfig` preset.
A patch file from https://github.com/void-linux/void-packages/pull/46118.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ttf-nerd-fonts-symbols-46118.patch --]
[-- Type: text/x-diff, Size: 5176 bytes --]
From 0d2cac4d8f3b590d71d2d32105e92c84ecf81769 Mon Sep 17 00:00:00 2001
From: chrysos349 <chrysostom349@gmail.com>
Date: Tue, 19 Sep 2023 00:03:12 +0300
Subject: [PATCH] New package: ttf-nerd-fonts-symbols-3.0.2
---
srcpkgs/nerd-fonts | 1 +
srcpkgs/nerd-fonts-otf | 2 +-
srcpkgs/nerd-fonts-ttf | 2 +-
srcpkgs/nerd-fonts/template | 47 ---------------------
srcpkgs/ttf-nerd-fonts-symbols/template | 55 +++++++++++++++++++++++++
5 files changed, 58 insertions(+), 49 deletions(-)
create mode 120000 srcpkgs/nerd-fonts
delete mode 100644 srcpkgs/nerd-fonts/template
create mode 100644 srcpkgs/ttf-nerd-fonts-symbols/template
diff --git a/srcpkgs/nerd-fonts b/srcpkgs/nerd-fonts
new file mode 120000
index 0000000000000..31ae545cd9de0
--- /dev/null
+++ b/srcpkgs/nerd-fonts
@@ -0,0 +1 @@
+ttf-nerd-fonts-symbols
\ No newline at end of file
diff --git a/srcpkgs/nerd-fonts-otf b/srcpkgs/nerd-fonts-otf
index e5a8856321374..31ae545cd9de0 120000
--- a/srcpkgs/nerd-fonts-otf
+++ b/srcpkgs/nerd-fonts-otf
@@ -1 +1 @@
-nerd-fonts
\ No newline at end of file
+ttf-nerd-fonts-symbols
\ No newline at end of file
diff --git a/srcpkgs/nerd-fonts-ttf b/srcpkgs/nerd-fonts-ttf
index e5a8856321374..31ae545cd9de0 120000
--- a/srcpkgs/nerd-fonts-ttf
+++ b/srcpkgs/nerd-fonts-ttf
@@ -1 +1 @@
-nerd-fonts
\ No newline at end of file
+ttf-nerd-fonts-symbols
\ No newline at end of file
diff --git a/srcpkgs/nerd-fonts/template b/srcpkgs/nerd-fonts/template
deleted file mode 100644
index f4409116aa628..0000000000000
--- a/srcpkgs/nerd-fonts/template
+++ /dev/null
@@ -1,47 +0,0 @@
-# Template file for 'nerd-fonts'
-pkgname=nerd-fonts
-version=3.0.2
-revision=1
-depends="nerd-fonts-ttf nerd-fonts-otf"
-short_desc="Iconic font aggregator, collection and patcher"
-maintainer="cinerea0 <cinerea0@protonmail.com>"
-license="MIT"
-homepage="https://nerdfonts.com"
-changelog="https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/changelog.md"
-distfiles="https://github.com/ryanoasis/nerd-fonts/archive/refs/tags/v${version}.tar.gz"
-checksum=3b18b305451b0b22cb6484197f8029efe54e5c459e8ed3adbb0fb1697c0c13a6
-
-do_install() {
- vmkdir usr/share/fonts/NerdFonts/otf
- vmkdir usr/share/fonts/NerdFonts/ttf
- vmkdir usr/lib/NerdFonts
-
- # get all patched fonts
- 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 \;
-
- # install patching scripts
- for sh in bin/scripts/lib/i_*.sh; do
- vinstall $sh 744 usr/lib/NerdFonts
- done
-
- vlicense LICENSE
-}
-
-nerd-fonts-otf_package() {
- short_desc="Iconic font aggregator, collection and patcher - otf fonts"
- font_dirs="/usr/share/fonts/NerdFonts/otf"
- depends="font-util"
- pkg_install() {
- vmove usr/share/fonts/NerdFonts/otf
- }
-}
-
-nerd-fonts-ttf_package() {
- short_desc="Iconic font aggregator, collection and patcher - ttf fonts"
- font_dirs="/usr/share/fonts/NerdFonts/ttf"
- depends="font-util"
- pkg_install() {
- vmove usr/share/fonts/NerdFonts/ttf
- }
-}
diff --git a/srcpkgs/ttf-nerd-fonts-symbols/template b/srcpkgs/ttf-nerd-fonts-symbols/template
new file mode 100644
index 0000000000000..575b7b2b9a24e
--- /dev/null
+++ b/srcpkgs/ttf-nerd-fonts-symbols/template
@@ -0,0 +1,55 @@
+# Template file for 'ttf-nerd-fonts-symbols'
+pkgname=ttf-nerd-fonts-symbols
+version=3.0.2
+revision=1
+short_desc="High number of extra glyphs from popular 'iconic fonts'"
+maintainer="chrysos349 <chrysostom349@gmail.com>"
+license="MIT"
+homepage="https://github.com/ryanoasis/nerd-fonts"
+_url="https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${version}"
+distfiles="${_url}/patched-fonts/NerdFontsSymbolsOnly/SymbolsNerdFont-Regular.ttf
+ ${_url}/patched-fonts/NerdFontsSymbolsOnly/SymbolsNerdFontMono-Regular.ttf
+ ${_url}/10-nerd-font-symbols.conf
+ ${_url}/LICENSE"
+checksum="adc6d3e4a7cd6ac90eb5355d9a75f4f3078d9516eb1d35b1b4c640cac15264c8
+ 14ece2cc91d5a4762ab3e7b76a19a489a1be9f0ec9e13dfadd81cd49fe6a1ad7
+ 8bea9c77f30dfde59f91ca1c4d860a3bf8b228b9e6f9f71afd1701d902e9cce7
+ 1f6ad4edae6479aaace3112ede5279a23284ae54b2a34db66357aef5f64df160"
+font_dirs="/usr/share/fonts/TTF"
+
+do_extract() {
+ cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/* \
+ ${XBPS_BUILDDIR}/${pkgname}-${version}
+}
+
+do_install() {
+ vmkdir usr/share/fonts/TTF
+ install -m644 *.ttf ${DESTDIR}/usr/share/fonts/TTF
+
+ vmkdir usr/share/fontconfig/conf.avail
+ install -m644 *.conf ${DESTDIR}/usr/share/fontconfig/conf.avail
+
+ vmkdir etc/fonts/conf.d
+ ln -sf /usr/share/fontconfig/conf.avail/10-nerd-font-symbols.conf \
+ ${DESTDIR}/etc/fonts/conf.d/
+
+ vlicense LICENSE
+}
+
+nerd-fonts_package() {
+ build_style=meta
+ depends=${sourcepkg}>=${version}_${revision}
+ short_desc+=" (transitional dummy package)"
+}
+
+nerd-fonts-otf_package() {
+ build_style=meta
+ depends=${sourcepkg}>=${version}_${revision}
+ short_desc+=" (transitional dummy package)"
+}
+
+nerd-fonts-ttf_package() {
+ build_style=meta
+ depends=${sourcepkg}>=${version}_${revision}
+ short_desc+=" (transitional dummy package)"
+}
next prev parent reply other threads:[~2023-09-18 21:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-18 20:42 [PR PATCH] " chrysos349
2023-09-18 20:46 ` classabbyamp
2023-09-18 20:48 ` chrysos349
2023-09-18 20:49 ` classabbyamp
2023-09-18 21:03 ` chrysos349 [this message]
2023-09-18 21:06 ` New-package: ttf-nerd-fonts-symbols-3.0.2 chrysos349
2023-09-18 22:52 ` cinerea0
2023-09-18 23:45 ` [PR PATCH] [Updated] " chrysos349
2023-09-18 23:47 ` chrysos349
2023-09-18 23:47 ` chrysos349
2023-09-19 1:48 ` ahesford
2023-09-19 2:40 ` [PR PATCH] [Closed]: " chrysos349
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230918210322.MfR12fpCqCMGzRYlFJlyByK9kLzhCs6CQz0xngGc35Y@z \
--to=chrysos349@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).