summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-06-26 14:54:07 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-06-28 08:16:54 +0700
commit4a7556530aeff8887e7b206e2f64aacaa5644d71 (patch)
treef4fb2564979e6628a73a3c3dc6fc1990fcce7e69 /accessibility
parentfb65ac6ee013220bdab6d48ff9b9493955bf7650 (diff)
downloadslackbuilds-4a7556530aeff8887e7b206e2f64aacaa5644d71.tar.gz
accessibility/fonts-opendyslexic: Added (font for dyslexics)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/fonts-opendyslexic/README17
-rw-r--r--accessibility/fonts-opendyslexic/doinst.sh10
-rw-r--r--accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild91
-rw-r--r--accessibility/fonts-opendyslexic/fonts-opendyslexic.info10
-rw-r--r--accessibility/fonts-opendyslexic/slack-desc19
5 files changed, 147 insertions, 0 deletions
diff --git a/accessibility/fonts-opendyslexic/README b/accessibility/fonts-opendyslexic/README
new file mode 100644
index 0000000000..c9b8ac8514
--- /dev/null
+++ b/accessibility/fonts-opendyslexic/README
@@ -0,0 +1,17 @@
+font-opendyslexic (font designed for readers with dyslexia)
+
+OpenDyslexic is an open sourced font created to increase readability for
+readers with dyslexia. It includes regular, bold, italic, bold-italic,
+and monospaced styles. It is being updated continually and improved
+based on input from dyslexic users.
+
+The fonts are shipped in multiple formats. By default, the package will
+include only the OpenType (OTF) fonts. If you need the others, export
+the variable FORMATS as a space-separated list of font types. The
+choices are: otf ttf eot woff svg. You can also say "all". Example:
+
+# FORMATS="ttf woff" ./font-opendyslexic.SlackBuild
+
+Note that Xorg only knows how to use OpenType and TrueType. The others
+will be installed in /usr/share/fonts/<format>, for use with whatever
+software you have that supports them.
diff --git a/accessibility/fonts-opendyslexic/doinst.sh b/accessibility/fonts-opendyslexic/doinst.sh
new file mode 100644
index 0000000000..4aa0dcbf0f
--- /dev/null
+++ b/accessibility/fonts-opendyslexic/doinst.sh
@@ -0,0 +1,10 @@
+if [ -x /usr/bin/mkfontdir -a -x /usr/bin/mkfontscale ]; then
+ for FMT in @MKFDIRS@; do
+ ( cd usr/share/fonts/$FMT
+ /usr/bin/mkfontscale .
+ /usr/bin/mkfontdir .
+ )
+ done
+fi
+
+[ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache -f
diff --git a/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild b/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild
new file mode 100644
index 0000000000..08972b0ae0
--- /dev/null
+++ b/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild
@@ -0,0 +1,91 @@
+#!/bin/sh
+
+# Slackware build script for fonts-opendyslexic
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# Yes, I know, there are newer versions of this at github. However,
+# they lack the compiled OpenDyslexicMono (terminal) font, and the tools
+# required to compile the source would require me submitting 15 or 20
+# python SlackBuilds for the tools and all their deps. Plus, they need
+# versions of libraries that probably are too new to work on 14.2.
+
+# The Debian package only includes the .otf fonts. That's what I'll do
+# by default, but I'll support installing the other types if needed.
+
+PRGNAM=fonts-opendyslexic
+VERSION=${VERSION:-20160623}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+SRCDIR=open-dyslexic-$VERSION-Stable
+
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCDIR
+tar xvf $CWD/${PRGNAM}_$VERSION.orig.tar.gz
+cd $SRCDIR
+chown -R root:root .
+# rotten upstream perms, do not revert to template please.
+find . -type d -exec chmod 755 {} \+
+find . -type f -exec chmod 644 {} \+
+
+# See README
+FORMATS="$( echo ${FORMATS:-otf} | tr A-Z a-z )"
+ALLFMT="otf ttf eot woff svg"
+[ "$FORMATS" = "all" ] && FORMATS="$ALLFMT"
+
+for i in $FORMATS; do
+ ok=0
+ for j in $ALLFMT; do
+ [ "$i" = "$j" ] && ok=1
+ done
+ if [ "$ok" != "1" ]; then
+ cat <<EOF
+***
+*** Unsupported font format '$i'. Supported formats are: $ALLFMT all
+***
+EOF
+ exit 1
+ fi
+done
+
+mkdir -p $PKG/usr/share/fonts
+for fmt in $FORMATS; do
+ FMT=$( echo $fmt | tr a-z A-Z )
+ cp -a $fmt $PKG/usr/share/fonts/$FMT
+ [ "$FMT" = "TTF" -o "$FMT" = "OTF" ] && MKFDIRS+="$FMT "
+ DESCFMT+=" $FMT"
+done
+
+# I thought about including screenshots/ in the doc dir, but they're
+# more like an advertisement (anyone building this package has already
+# "bought" the product).
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+
+sed "s,@DESCFMT@,$DESCFMT," $CWD/slack-desc > $PKG/install/slack-desc
+
+# Only install doinst.sh if TTF and/or OTF fonts are included, because
+# fc-cache and X only know about these 2 types.
+if [ -n "$MKFDIRS" ]; then
+ sed "s,@MKFDIRS@,$MKFDIRS," $CWD/doinst.sh > $PKG/install/doinst.sh
+fi
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/accessibility/fonts-opendyslexic/fonts-opendyslexic.info b/accessibility/fonts-opendyslexic/fonts-opendyslexic.info
new file mode 100644
index 0000000000..662bbadf3d
--- /dev/null
+++ b/accessibility/fonts-opendyslexic/fonts-opendyslexic.info
@@ -0,0 +1,10 @@
+PRGNAM="fonts-opendyslexic"
+VERSION="20160623"
+HOMEPAGE="http://dyslexicfonts.com/"
+DOWNLOAD="http://deb.debian.org/debian/pool/main/f/fonts-opendyslexic/fonts-opendyslexic_20160623.orig.tar.gz"
+MD5SUM="b00df57c8f26be3caf8599f6a61d24b8"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
diff --git a/accessibility/fonts-opendyslexic/slack-desc b/accessibility/fonts-opendyslexic/slack-desc
new file mode 100644
index 0000000000..f818d049d2
--- /dev/null
+++ b/accessibility/fonts-opendyslexic/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------------------------------------------------------|
+fonts-opendyslexic: fonts-opendyslexic (font designed for readers with dyslexia)
+fonts-opendyslexic:
+fonts-opendyslexic: OpenDyslexic is an open sourced font created to increase readability
+fonts-opendyslexic: for readers with dyslexia. It includes regular, bold, italic,
+fonts-opendyslexic: bold-italic, and monospaced styles. It is being updated continually
+fonts-opendyslexic: and improved based on input from dyslexic users.
+fonts-opendyslexic:
+fonts-opendyslexic: This package includes these font types:@DESCFMT@
+fonts-opendyslexic:
+fonts-opendyslexic:
+fonts-opendyslexic: