Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] add ttf-vista-fonts package (nonfree)
@ 2024-04-23  9:10 FoggyMtnDrifter
  2024-04-23  9:12 ` FoggyMtnDrifter
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: FoggyMtnDrifter @ 2024-04-23  9:10 UTC (permalink / raw)
  To: ml

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

There is a new pull request by FoggyMtnDrifter against master on the void-packages repository

https://github.com/FoggyMtnDrifter/void-packages ttf-vista-fonts
https://github.com/void-linux/void-packages/pull/49996

add ttf-vista-fonts package (nonfree)
#### 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**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64


A patch file from https://github.com/void-linux/void-packages/pull/49996.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ttf-vista-fonts-49996.patch --]
[-- Type: text/x-diff, Size: 2322 bytes --]

From 5f8a50f6198e9725d61660aea16358aff1e8bbeb Mon Sep 17 00:00:00 2001
From: Michael Kinder <michael@foggymtndrifter.com>
Date: Tue, 23 Apr 2024 05:06:24 -0400
Subject: [PATCH] add ttf-vista-fonts package (nonfree)

---
 srcpkgs/ttf-vista-fonts/template | 41 ++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 srcpkgs/ttf-vista-fonts/template

diff --git a/srcpkgs/ttf-vista-fonts/template b/srcpkgs/ttf-vista-fonts/template
new file mode 100644
index 00000000000000..2e988ce12ed46b
--- /dev/null
+++ b/srcpkgs/ttf-vista-fonts/template
@@ -0,0 +1,41 @@
+pkgname=ttf-vista-fonts
+version=1.0.0
+revision=1
+short_desc="Microsoft Vista and Office 2007 True Type Fonts"
+maintainer="Michael Kinder <michael@foggymtndrifter.com>"
+# Referenced to the PowerPointViewer.exe, the template and mechanism are custom.
+# The fonts are licensed under a Microsoft-specific license included with this
+# package as filename "EULA".
+license="custom:microsoft"
+homepage="https://docs.microsoft.com/en-us/typography/fonts/font-faq"
+distfiles="https://web.archive.org/web/20171225132744/http://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe>${pkgname}.cab"
+checksum=249473568eba7a1e4f95498acba594e0f42e6581add4dead70c1dfb908a09423
+makedepends="fontforge fontconfig cabextract"
+nocross=yes
+
+# While it is fine to distribute the templates that build packages
+# containing the Vista and Office 2007 fonts, they must not distribute the fonts
+# themselves (this would constitute changing or otherwise
+# encapsulating the filename which is not permitted).
+restricted=yes
+repository=nonfree
+
+# They're just fonts...
+
+# Tell XBPS that these are fonts
+font_dirs="/usr/share/fonts/TTF"
+
+do_extract() {
+    mkdir -p ${wrksrc}
+    cabextract --lowercase ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}.cab -d ${wrksrc}
+    cabextract --lowercase -F '*.tt[fc]' ${wrksrc}/ppviewer.cab -d ${wrksrc}
+}
+
+do_install() {
+    vmkdir usr/share/fonts/TTF
+    # Use find command to correctly handle and copy each font file
+    find ${wrksrc} -iname "*.ttf" -o -iname "*.ttc" | while read fontfile; do
+        vcopy "$(basename ${fontfile})" usr/share/fonts/TTF/
+    done
+    vinstall ${wrksrc}/eula 644 usr/share/licenses/${pkgname}/EULA
+}

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

end of thread, other threads:[~2024-04-25  1:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-23  9:10 [PR PATCH] add ttf-vista-fonts package (nonfree) FoggyMtnDrifter
2024-04-23  9:12 ` FoggyMtnDrifter
2024-04-23 12:00 ` chrysos349
2024-04-23 14:22 ` [PR PATCH] [Updated] " FoggyMtnDrifter
2024-04-23 14:39 ` FoggyMtnDrifter
2024-04-24 18:58 ` fanyx
2024-04-24 21:52 ` [PR PATCH] [Updated] " FoggyMtnDrifter
2024-04-24 23:55 ` 0x5c
2024-04-25  1:19 ` [PR PATCH] [Updated] " FoggyMtnDrifter
2024-04-25  1:20 ` FoggyMtnDrifter

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