diff options
author | JW(Shinichi Abe) <shin1.abe@nifty.com> | 2023-07-02 21:11:22 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-02 21:27:53 +0700 |
commit | 79ec2dffc8fe894d70da0c8ff51f6d7f6922c868 (patch) | |
tree | d7ccfa0481c0c5738b74c93df44530f1ffb9fe54 /system | |
parent | 62743ec90959a8b437fa61e4b41fe8a22e497ec6 (diff) |
system/otf-ibm-plex: Added (Open Type Font).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/otf-ibm-plex/README | 3 | ||||
-rw-r--r-- | system/otf-ibm-plex/doinst.sh | 11 | ||||
-rw-r--r-- | system/otf-ibm-plex/otf-ibm-plex.SlackBuild | 72 | ||||
-rw-r--r-- | system/otf-ibm-plex/otf-ibm-plex.info | 10 | ||||
-rw-r--r-- | system/otf-ibm-plex/slack-desc | 19 |
5 files changed, 115 insertions, 0 deletions
diff --git a/system/otf-ibm-plex/README b/system/otf-ibm-plex/README new file mode 100644 index 000000000000..3e5cfeed8878 --- /dev/null +++ b/system/otf-ibm-plex/README @@ -0,0 +1,3 @@ +ttf-ibm-plex (Open Type Font) + +IBM Plex font family. diff --git a/system/otf-ibm-plex/doinst.sh b/system/otf-ibm-plex/doinst.sh new file mode 100644 index 000000000000..f0c0523187fa --- /dev/null +++ b/system/otf-ibm-plex/doinst.sh @@ -0,0 +1,11 @@ +# Update the X font indexes: +if [ -x /usr/bin/mkfontdir ]; then + ( cd /usr/share/fonts/OTF + mkfontscale . + mkfontdir . + ) +fi + +if [ -x /usr/bin/fc-cache ]; then + /usr/bin/fc-cache -f +fi diff --git a/system/otf-ibm-plex/otf-ibm-plex.SlackBuild b/system/otf-ibm-plex/otf-ibm-plex.SlackBuild new file mode 100644 index 000000000000..5dedabddb42c --- /dev/null +++ b/system/otf-ibm-plex/otf-ibm-plex.SlackBuild @@ -0,0 +1,72 @@ +#!/bin/bash +# +# Slackware build script for ttf-ibm-plex +# +# ISC License +# +# Copyright (c) 2019, 2020 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. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=otf-ibm-plex +VERSION=${VERSION:-6.3.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +ARCH=noarch + +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +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} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +unzip $CWD/OpenType.zip +mv OpenType $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/OTF +find . -name "*.otf" -exec cp {} $PKG/usr/share/fonts/OTF/ \; + +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 diff --git a/system/otf-ibm-plex/otf-ibm-plex.info b/system/otf-ibm-plex/otf-ibm-plex.info new file mode 100644 index 000000000000..77588e2a109a --- /dev/null +++ b/system/otf-ibm-plex/otf-ibm-plex.info @@ -0,0 +1,10 @@ +PRGNAM="otf-ibm-plex" +VERSION="6.3.0" +HOMEPAGE="https://github.com/IBM/plex" +DOWNLOAD="https://github.com/IBM/plex/releases/download/v6.3.0/OpenType.zip" +MD5SUM="01fce5d42666afb6587f609f38f9ab1a" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="JW(Shinichi Abe)" +EMAIL="shin1.abe@nifty.com" diff --git a/system/otf-ibm-plex/slack-desc b/system/otf-ibm-plex/slack-desc new file mode 100644 index 000000000000..f2b64d465fea --- /dev/null +++ b/system/otf-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------------------------------------------------------| +otf-ibm-plex: otf-ibm-plex (Open Type Font) +otf-ibm-plex: +otf-ibm-plex: IBM Plex font family. +otf-ibm-plex: +otf-ibm-plex: Homepage: https://github.com/IBM/plex +otf-ibm-plex: +otf-ibm-plex: +otf-ibm-plex: +otf-ibm-plex: +otf-ibm-plex: +otf-ibm-plex: |