Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New-package: ttf-nerd-fonts-symbols-3.0.2, removed-packages: revbump due to nerd-fonts{,-ttf,-otf} removal
@ 2023-09-18 20:42 chrysos349
  2023-09-18 20:46 ` classabbyamp
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: chrysos349 @ 2023-09-18 20:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1359 bytes --]

There is a new 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: 3062 bytes --]

From 0b752a3c1d076fff480b3a3bb135cee0e60c84a3 Mon Sep 17 00:00:00 2001
From: chrysos349 <chrysostom349@gmail.com>
Date: Mon, 18 Sep 2023 23:22:35 +0300
Subject: [PATCH 1/2] removed-packages: revbump due to nerd-fonts{,-ttf,-otf}
 removal

---
 srcpkgs/removed-packages/template | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index edf3aa545694b..420fb5673995d 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -1,7 +1,7 @@
 # Template file for 'removed-packages'
 pkgname=removed-packages
 version=0.1.20230918
-revision=2
+revision=3
 build_style=meta
 short_desc="Uninstalls packages removed from repository"
 maintainer="Piotr Wójcik <chocimier@tlen.pl>"
@@ -416,6 +416,9 @@ replaces="
  namecoin<=0.18.1_9
  nautilus-sendto<=3.8.6_2
  ncdns<=0.0.2_12
+ nerd-fonts-otf<=3.0.2_1
+ nerd-fonts-ttf<=3.0.2_1
+ nerd-fonts<=3.0.2_1
  newt-python<=0.52.21_5
  nodejs-lts-10<=10.24.0_2
  nvidia340-dkms<=340.108_4

From 39ba8540250b1ad944c748a133f7b9d47931f88f Mon Sep 17 00:00:00 2001
From: chrysos349 <chrysostom349@gmail.com>
Date: Mon, 18 Sep 2023 23:40:39 +0300
Subject: [PATCH 2/2] New package: ttf-nerd-fonts-symbols-3.0.2

---
 srcpkgs/ttf-nerd-fonts-symbols/template | 38 +++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 srcpkgs/ttf-nerd-fonts-symbols/template

diff --git a/srcpkgs/ttf-nerd-fonts-symbols/template b/srcpkgs/ttf-nerd-fonts-symbols/template
new file mode 100644
index 0000000000000..ba030c3509187
--- /dev/null
+++ b/srcpkgs/ttf-nerd-fonts-symbols/template
@@ -0,0 +1,38 @@
+# 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"
+replaces="nerd-fonts-ttf>=0"
+
+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
+}

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-09-19  2:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-18 20:42 [PR PATCH] New-package: ttf-nerd-fonts-symbols-3.0.2, removed-packages: revbump due to nerd-fonts{,-ttf,-otf} removal chrysos349
2023-09-18 20:46 ` classabbyamp
2023-09-18 20:48 ` chrysos349
2023-09-18 20:49 ` classabbyamp
2023-09-18 21:03 ` [PR PATCH] [Updated] " chrysos349
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

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).