diff options
-rw-r--r-- | system/gyre-fonts/README | 45 | ||||
-rw-r--r-- | system/gyre-fonts/doinst.sh | 11 | ||||
-rw-r--r-- | system/gyre-fonts/gyre-fonts.SlackBuild | 103 | ||||
-rw-r--r-- | system/gyre-fonts/gyre-fonts.info | 10 | ||||
-rw-r--r-- | system/gyre-fonts/slack-desc | 19 |
5 files changed, 188 insertions, 0 deletions
diff --git a/system/gyre-fonts/README b/system/gyre-fonts/README new file mode 100644 index 0000000000..8b2b9c0587 --- /dev/null +++ b/system/gyre-fonts/README @@ -0,0 +1,45 @@ +The TeX Gyre (TG) Collection of Fonts + +These fonts do not support Cyrillic. + +This package does _not_ touch TeXLive, if it is installed, it +installes the fonts systemwide, so that LibreOffice or fontconfig +and freetype can use them. + +TeX Gyre is a package from GUST, it implements 8 standard PostScript +fonts in OTF, under different names. + +TeX Gyre Adventor can be used as a replacement for ITC Avant Garde +Gothic (designed by Herb Lubalin and Tom Carnase, 1970). + +TeX Gyre Bonum can be used as a replacement for ITC Bookman (designed +by Alexander Phemister, 1860, redesigned by Edward Benguiat, 1975). + +TeX Gyre Chorus can be used as a replacement for the acknowledged font +ITC Zapf Chancery(R) (designed by Hermann Zapf, 1979). + +TeX Gyre Cursor can be used as a replacement for a well-known Courier +typeface (designed by Howard G. “Bud” Kettler, 1955, for the IBM +corporation). + +TeX Gyre Heros can be used as a replacement for a popular font +Helvetica, also known as Swiss (prepared by Max Miedinger with Eduard +Hoffmann, 1957, at the Haas Type Foundry). + +TeX Gyre Pagella can be used as a replacement for the renowned +Palatino font (designed by Hermann Zapf in the 1940's for the Stempel +type foundry; an interesting lifestory of Hermann Zapf can be found +at: http://www.linotype.com/1494/theschoolyears.html). + +TeX Gyre Schola can be used as a replacement for the Century +Schoolbook typeface (designed by Morris Fuller Benton, 1919, for the +American Type Founders; originally, italics were not designed, they +were added in later revivals by Linotype and ITC). + +TeX Gyre Termes can be used as a replacement for the renowned Times +(new) Roman font (designed by Stanley Morison together with Starling +Burgess and Victor Lardent for the London newspaper “The Times”; it +was first issued by the Monotype Corporation in 1932—see the article +by Charles Bigelow for interesting details: +(http://www.truetype-typography.com/articles/times.htm). + diff --git a/system/gyre-fonts/doinst.sh b/system/gyre-fonts/doinst.sh new file mode 100644 index 0000000000..8fec9f5340 --- /dev/null +++ b/system/gyre-fonts/doinst.sh @@ -0,0 +1,11 @@ +# Update the X font indexes: +if [ -x /usr/bin/mkfontdir ]; then + ( cd /usr/share/fonts/TTF + mkfontscale . + mkfontdir . + ) +fi + +if [ -x /usr/bin/fc-cache ]; then + /usr/bin/fc-cache -f +fi diff --git a/system/gyre-fonts/gyre-fonts.SlackBuild b/system/gyre-fonts/gyre-fonts.SlackBuild new file mode 100644 index 0000000000..30d16b1a80 --- /dev/null +++ b/system/gyre-fonts/gyre-fonts.SlackBuild @@ -0,0 +1,103 @@ +#!/bin/bash + +# Slackware build script for gyre-fonts + +# Copyright 2025, Lockywolf +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=gyre-fonts +VERSION=${VERSION:-2.501} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +TARNAM=tg2_501bas + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +if [[ "$UNSUP" == 1 ]] ; then + printf "Unsupported architecture: unknown.\n" 1>&2 +fi + +ARCH=noarch + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $TARNAM-$VERSION +mkdir $TARNAM-$VERSION +cd $TARNAM-$VERSION + +unzip $CWD/"$TARNAM"*.zip + +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} + -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} + + +mkdir -p $PKG/usr/share/fonts/OTF +find . -path "*.otf" -exec cp {} $PKG/usr/share/fonts/OTF/ \; + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + $TARNAM/doc \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/system/gyre-fonts/gyre-fonts.info b/system/gyre-fonts/gyre-fonts.info new file mode 100644 index 0000000000..c3f6c1b702 --- /dev/null +++ b/system/gyre-fonts/gyre-fonts.info @@ -0,0 +1,10 @@ +PRGNAM="gyre-fonts" +VERSION="2.501" +HOMEPAGE="https://www.gust.org.pl/projects/e-foundry/tex-gyre/index_html" +DOWNLOAD="https://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg2_501bas.zip" +MD5SUM="f884ab0f730fd3234ba13b3d66305bd4" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Lockywolf" +EMAIL="for_sbo.gyre-fonts_2025-05-10@lockywolf.net" diff --git a/system/gyre-fonts/slack-desc b/system/gyre-fonts/slack-desc new file mode 100644 index 0000000000..45469c1d85 --- /dev/null +++ b/system/gyre-fonts/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +gyre-fonts: gyre-fonts (OTF font extracted from TeX ) +gyre-fonts: +gyre-fonts: The TeX Gyre (TG) Collection of Fonts, installed systemwide, not +gyre-fonts: into the tex directory structure. +gyre-fonts: +gyre-fonts: Includes 8 fonts which correspond to the "standard" PostScript fonts. +gyre-fonts: +gyre-fonts: These fonts do not support Cyrillic. +gyre-fonts: +gyre-fonts: +gyre-fonts: |