diff options
author | Lazar Isailovic <etflazar@gmail.com> | 2019-01-12 08:18:54 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-01-12 08:18:54 +0700 |
commit | 478311406de890043adf82a6e95e5c23fe14efad (patch) | |
tree | f40106c5760416600f66f84e311f17c8b0015013 | |
parent | a6bb8cd8613bb2c3769c098e79b466590dcd0ff3 (diff) |
system/ttf-ibm-plex: Added (True Type Font).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | system/ttf-ibm-plex/README | 3 | ||||
-rw-r--r-- | system/ttf-ibm-plex/doinst.sh | 11 | ||||
-rw-r--r-- | system/ttf-ibm-plex/slack-desc | 19 | ||||
-rw-r--r-- | system/ttf-ibm-plex/ttf-ibm-plex.SlackBuild | 62 | ||||
-rw-r--r-- | system/ttf-ibm-plex/ttf-ibm-plex.info | 10 |
5 files changed, 105 insertions, 0 deletions
diff --git a/system/ttf-ibm-plex/README b/system/ttf-ibm-plex/README new file mode 100644 index 0000000000000..3340b2c0becbb --- /dev/null +++ b/system/ttf-ibm-plex/README @@ -0,0 +1,3 @@ +ttf-ibm-plex (True Type Font) + +IBM Plex font family. diff --git a/system/ttf-ibm-plex/doinst.sh b/system/ttf-ibm-plex/doinst.sh new file mode 100644 index 0000000000000..8fec9f5340068 --- /dev/null +++ b/system/ttf-ibm-plex/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/ttf-ibm-plex/slack-desc b/system/ttf-ibm-plex/slack-desc new file mode 100644 index 0000000000000..3276be677c847 --- /dev/null +++ b/system/ttf-ibm-plex/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------------------------------------------------------| +appname: ttf-ibm-plex (True Type Font) +appname: +appname: IBM Plex font family. +appname: +appname: Home page: https://github.com/IBM/plex +appname: +appname: +appname: +appname: +appname: +appname: diff --git a/system/ttf-ibm-plex/ttf-ibm-plex.SlackBuild b/system/ttf-ibm-plex/ttf-ibm-plex.SlackBuild new file mode 100644 index 0000000000000..e94c0d2b6cca4 --- /dev/null +++ b/system/ttf-ibm-plex/ttf-ibm-plex.SlackBuild @@ -0,0 +1,62 @@ +#!/bin/sh +# +# Slackware build script for ttf-ibm-plex +# +# ISC License +# +# Copyright (c) 2019, Lazar Isailovic <etflazar@gmail.com> +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +PRGNAM=ttf-ibm-plex +VERSION=${VERSION:-1.2.3} +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 +unzip $CWD/TrueType.zip +mv TrueType $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +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/TTF +cp -a */*.ttf $PKG/usr/share/fonts/TTF + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a IBM-Plex-Mono/license.txt $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/ttf-ibm-plex/ttf-ibm-plex.info b/system/ttf-ibm-plex/ttf-ibm-plex.info new file mode 100644 index 0000000000000..08f9efd196118 --- /dev/null +++ b/system/ttf-ibm-plex/ttf-ibm-plex.info @@ -0,0 +1,10 @@ +PRGNAM="ttf-ibm-plex" +VERSION="1.2.3" +HOMEPAGE="https://github.com/IBM/plex" +DOWNLOAD="https://github.com/IBM/plex/releases/download/v1.2.3/TrueType.zip" +MD5SUM="bd4dccee6dc353e21c511dc23ca577ce" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Lazar Isailovic" +EMAIL="etflazar@gmail.com" |