system/ttf-ancient-fonts: Added (Unicode fonts for ancient scripts)

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2020-06-22 20:05:16 +01:00 committed by Willy Sudiarto Raharjo
parent 99eeed3b5c
commit 48e6dcca3b
No known key found for this signature in database
GPG key ID: 3F617144D7238786
7 changed files with 198 additions and 0 deletions

View file

@ -0,0 +1,20 @@
ttf-ancient-fonts (Unicode fonts for ancient scripts)
These are free unicode fonts for Aegean Scripts, other ancient scripts
in the greater Aegean vicinity, Egyptian Hieroglyphs, Sumero-Akkadian
Cuneiform, and Musical Symbols in the Unicode Standard.
Despite the "ttf" in the name, the package includes a few .otf fonts
as well.
The fonts installed by this package include hinting, by default. If you
for some reason require unhinted fonts, export HINTS=no in the
environment before running the SlackBuild. If you don't know what font
hinting is, you probably shouldn't worry about it.
The source tarball contains an older version of the Symbola font.
By default it's not included here, as there's already a symbola-font-ttf
on SBo. It's a much newer version of Symbola, but is licensed under
highly restrictive terms. If you'd rather have the older but free-to-use
version of Symbola, set SYMBOLA=yes in the environment for this build,
and don't install symbola-font-ttf.

View file

@ -0,0 +1,21 @@
Versions of the fonts included in this package
==============================================
Aegean v.9.17 02/2017 Scripts and symbols of the Aegean world
Textfonts v.7.17 02/2017 Fonts based on early Greek editions
Symbola v.9.17 07/2017 Symbol blocks of The Unicode Standard
Abydos v.1.23 07/2017 A data-font of 7440 Egyptian Hieroglyphs
Aegyptus v.6.17 02/2017 Egyptian Hieroglyphs, Coptic, Meroitic
Akkadian v.7.17 02/2017 Sumero-Akkadian Cuneiform
Anatolian v.5.17 02/2017 Anatolian Hieroglyphs
Maya v.4.17 02/2017 Maya Hieroglyphs
Unidings v.9.17 07/2017 Icons for blocks of The Unicode Standard
Musica v.3.17 02/2017 Musical Notation
Analecta v.5.17 02/2017 Coptic, Gothic, Deseret
The package also includes the following fonts obsoleted by the author:
Alfios (superseded by Asea)
Atavyros
Avdira

View file

@ -0,0 +1,26 @@
This package was debianized by:
Gürkan Myczko <gurkan@phys.ethz.ch> on Mon, 26 Nov 2007 12:13:25 +0100.
It was downloaded from:
http://users.teilar.gr/~g1951d/
Upstream Author:
George Douros <g1951d@teilar.gr>
Copyright:
Copyright (C) 2007-2015 George Douros
License:
Fonts are free for any use; they may be opened, edited,
modified, regenerated, packaged and redistributed.
The Debian packaging is:
Copyright (C) 2007-2017 Gürkan Myczko <gurkan@phys.ethz.ch>
Copyright (C) 2015 Andrew Shadura <andrewsh@debian.org>
is licensed under the GPL, see `/usr/share/common-licenses/GPL'.

View file

@ -0,0 +1,13 @@
if [ -x /usr/bin/mkfontdir ]; then
( cd usr/share/fonts/TTF
mkfontscale .
mkfontdir .
)
( cd usr/share/fonts/OTF
mkfontscale .
mkfontdir .
)
fi
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache -f
fi

View file

@ -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------------------------------------------------------|
ttf-ancient-fonts: ttf-ancient-fonts (Unicode fonts for ancient scripts)
ttf-ancient-fonts:
ttf-ancient-fonts: These are free unicode fonts for Aegean Scripts, other ancient scripts
ttf-ancient-fonts: in the greater Aegean vicinity, Egyptian Hieroglyphs, Sumero-Akkadian
ttf-ancient-fonts: Cuneiform, and Musical Symbols in the Unicode Standard.
ttf-ancient-fonts:
ttf-ancient-fonts: The TTF fonts in this package are @UN@hinted.
ttf-ancient-fonts:
ttf-ancient-fonts:
ttf-ancient-fonts:
ttf-ancient-fonts:

View file

@ -0,0 +1,89 @@
#!/bin/sh
# Slackware build script for ttf-ancient-fonts
# Written by B. Watson (yalhcru@gmail.com)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# Notes to self (or anyone else who cares):
# The tarball includes both hinted and unhinted versions of the fonts. The
# Debian package installs <font>.ttf and <font>_hint.ttf for all the
# fonts. However, if I do this, it's impossible to select the _hint
# versions in any application (because the TTF names conflict). Since
# it's possible to disable hinting in fontconfig or specific apps,
# I'm only going to include the _hint versions here by default. User
# can override with HINTS=no. The .otf fonts only come in one variety,
# so they're always installed as-is.
# There are newer versions of these fonts at https://dn-works.com/ufas/
# but they're under what I consider a ludicrously restrictive license,
# so I'm not going to touch them with a 10 foot pole. The symbola-font-ttf
# package is the restrictive version, so I've made it possible to include
# the older (free-to-use) Symbola here, though it's not the default.
# There's no documentation in the tarball, so I borrow it from Debian.
# There's no license info in the tarball, and neither the original site
# nor web.archive.org still has has the "un-Debianized" zip files that
# presumably included the licenses, so I'm including Debian's copyright
# file that asserts these fonts are "free for any use".
PRGNAM=ttf-ancient-fonts
VERSION=${VERSION:-2.60}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
HINTS="${HINTS:-yes}"
# If the user requested unhinted fonts, don't even bother to extract
# the hinted versions.
[ "$HINTS" != "yes" ] && UN=un && TAROPT="--exclude=*_hint.ttf"
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION.orig
tar xvf $CWD/${PRGNAM}_$VERSION.orig.tar.xz $TAROPT
cd $PRGNAM-$VERSION.orig
chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
HAS_SYMBOLA=yes
[ "${SYMBOLA:-no}" = "no" ] && rm -f Symbola* && HAS_SYMBOLA=no
# If we're doing hinted fonts, get rid of the unhinted ones. I can't think
# of a sane way to avoid extracting them in the first place...
[ "$HINTS" = "yes" ] && /bin/ls *.ttf | grep -v _hint | xargs rm -f
for i in TTF OTF; do
mkdir -p $PKG/usr/share/fonts/$i
install -m0644 *.$( echo $i | tr A-Z a-z) $PKG/usr/share/fonts/$i
done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
for i in README.debian copyright.debian; do
cat $CWD/$i > $PKG/usr/doc/$PRGNAM-$VERSION/$i
done
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
sed "s,@UN@,$UN," $CWD/slack-desc > $PKG/install/slack-desc
if [ "$HAS_SYMBOLA" = "yes" ]; then
sed -i \
'17s/$/ This package includes the Symbola font, and will conflict with symbola-font-ttf/' \
$PKG/install/slack-desc
fi
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -0,0 +1,10 @@
PRGNAM="ttf-ancient-fonts"
VERSION="2.60"
HOMEPAGE="https://packages.debian.org/sid/ttf-ancient-fonts"
DOWNLOAD="http://deb.debian.org/debian/pool/main/t/ttf-ancient-fonts/ttf-ancient-fonts_2.60.orig.tar.xz"
MD5SUM="a0132b3262b3eec9bc2fc8ff8c4ed9f3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"