diff options
author | B. Watson <yalhcru@gmail.com> | 2020-06-13 03:48:55 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-06-14 17:45:43 +0700 |
commit | 471accae93a44972ba59a9e04623370a29b8165a (patch) | |
tree | e6d54ac124d8ab2818ba969dd567d06b27507eb7 | |
parent | 03fe7e3fef9566019b43bc3ac074be8f9b2ea33c (diff) | |
download | slackbuilds-471accae93a44972ba59a9e04623370a29b8165a.tar.gz |
system/dse-typewriter-font: Added (typewriter-style TrueType font)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | system/dse-typewriter-font/README | 17 | ||||
-rw-r--r-- | system/dse-typewriter-font/doinst.sh | 8 | ||||
-rw-r--r-- | system/dse-typewriter-font/dse-typewriter-font.SlackBuild | 47 | ||||
-rw-r--r-- | system/dse-typewriter-font/dse-typewriter-font.info | 10 | ||||
-rw-r--r-- | system/dse-typewriter-font/git2tarxz.sh | 45 | ||||
-rw-r--r-- | system/dse-typewriter-font/slack-desc | 19 |
6 files changed, 146 insertions, 0 deletions
diff --git a/system/dse-typewriter-font/README b/system/dse-typewriter-font/README new file mode 100644 index 0000000000..7a8d65d7a2 --- /dev/null +++ b/system/dse-typewriter-font/README @@ -0,0 +1,17 @@ +dse-typewriter-font (typewriter-style TrueType font) + +dse-typewriter-font is a coding font inspired by early 20th-century +typewriters, with good Unicode coverage. + +This font is not the result of any scans or traces of samples, specimens, +or other output from an actual typewriter. It's more like an amalgamation +of old-school typewriter fonts with features semi-arbitrarily picked +from each one, as well as a few not in use on actual typewriters. + +Features and Characteristics: + +* Relatively low ex-height. +* Coding-friendly distinctive characters: li1| Oo0 `'" +* Elite scale typeface (12 characters per inch at 12-point font size). +* Perfectly useful as a traditional typewriter face for other purposes, if you + don’t mind the zero (0) having a dot in the middle. diff --git a/system/dse-typewriter-font/doinst.sh b/system/dse-typewriter-font/doinst.sh new file mode 100644 index 0000000000..c4c0e67fec --- /dev/null +++ b/system/dse-typewriter-font/doinst.sh @@ -0,0 +1,8 @@ +if [ -x /usr/bin/mkfontdir -a -x /usr/bin/mkfontscale ]; then + ( cd usr/share/fonts/TTF + /usr/bin/mkfontscale . + /usr/bin/mkfontdir . + ) +fi + +[ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache -f diff --git a/system/dse-typewriter-font/dse-typewriter-font.SlackBuild b/system/dse-typewriter-font/dse-typewriter-font.SlackBuild new file mode 100644 index 0000000000..857bfbcc46 --- /dev/null +++ b/system/dse-typewriter-font/dse-typewriter-font.SlackBuild @@ -0,0 +1,47 @@ +#!/bin/sh + +# Slackware build script for dse-typewriter-font + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +PRGNAM=dse-typewriter-font +VERSION=${VERSION:-20200507_1795eb8} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +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 $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +cd $PRGNAM-$VERSION +chown -R root:root . +# upstream permissions are bad +find -L . -type d -exec chmod 755 {} \+ +find -L . -type f -exec chmod 644 {} \+ + +mkdir -p $PKG/usr/share/fonts/TTF +cp -a ttf/*.ttf $PKG/usr/share/fonts/TTF + +# don't include the HTML docs: they're just a copy of the homepage, except +# they don't actually work right when installed locally. +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a *.md $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:-tgz} diff --git a/system/dse-typewriter-font/dse-typewriter-font.info b/system/dse-typewriter-font/dse-typewriter-font.info new file mode 100644 index 0000000000..7ca0fb24a1 --- /dev/null +++ b/system/dse-typewriter-font/dse-typewriter-font.info @@ -0,0 +1,10 @@ +PRGNAM="dse-typewriter-font" +VERSION="20200507_1795eb8" +HOMEPAGE="https://webonastick.com/fonts/dse-typewriter/" +DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/dse-typewriter-font-20200507_1795eb8.tar.xz" +MD5SUM="fc138176cffc5e8acb8937132a16d4c6" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/system/dse-typewriter-font/git2tarxz.sh b/system/dse-typewriter-font/git2tarxz.sh new file mode 100644 index 0000000000..e4d12c1807 --- /dev/null +++ b/system/dse-typewriter-font/git2tarxz.sh @@ -0,0 +1,45 @@ +#!/bin/sh + +# Create source tarball from git repo, with generated version +# number. + +# Note that this script doesn't need to be run as root. It does +# need to be able to write to the current directory it's run from. + +# Takes one optional argument, which is the commit or tag to create +# a tarball of. With no arg, HEAD is used. + +PRGNAM=dse-typewriter-font +GITUSER=dse +CLONE_URL=https://github.com/$GITUSER/$PRGNAM.git + +set -e + +GITDIR=$( mktemp -dt $PRGNAM.git.XXXXXX ) +rm -rf $GITDIR +git clone $CLONE_URL $GITDIR + +CWD="$( pwd )" +cd $GITDIR + +if [ "$1" != "" ]; then + git reset --hard "$1" || exit 1 +fi + +GIT_SHA=$( git rev-parse --short HEAD ) + +DATE=$( git log --date=format:%Y%m%d --format=%cd | head -1 ) + +VERSION=${DATE}_${GIT_SHA} + +rm -rf .git +find . -name .gitignore -print0 | xargs -0 rm -f + +cd "$CWD" +rm -rf $PRGNAM-$VERSION $PRGNAM-$VERSION.tar.xz +mv $GITDIR $PRGNAM-$VERSION +tar cvfJ $PRGNAM-$VERSION.tar.xz $PRGNAM-$VERSION + +echo +echo "Created tarball: $PRGNAM-$VERSION.tar.xz" +echo "VERSION=$VERSION" diff --git a/system/dse-typewriter-font/slack-desc b/system/dse-typewriter-font/slack-desc new file mode 100644 index 0000000000..d1ad44a2c3 --- /dev/null +++ b/system/dse-typewriter-font/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------------------------------------------------------| +dse-typewriter-font: dse-typewriter-font (typewriter-style TrueType font) +dse-typewriter-font: +dse-typewriter-font: dse-typewriter-font is a coding font inspired by early 20th-century +dse-typewriter-font: typewriters, with good Unicode coverage. +dse-typewriter-font: +dse-typewriter-font: This font is not the result of any scans or traces of samples, +dse-typewriter-font: specimens, or other output from an actual typewriter. It's more +dse-typewriter-font: like an amalgamation of old-school typewriter fonts with features +dse-typewriter-font: semi-arbitrarily picked from each one, as well as a few not in use +dse-typewriter-font: on actual typewriters. +dse-typewriter-font: |