From 79ec2dffc8fe894d70da0c8ff51f6d7f6922c868 Mon Sep 17 00:00:00 2001 From: "JW(Shinichi Abe)" Date: Sun, 2 Jul 2023 21:11:22 +0700 Subject: [PATCH] system/otf-ibm-plex: Added (Open Type Font). Signed-off-by: Willy Sudiarto Raharjo --- system/otf-ibm-plex/README | 3 + system/otf-ibm-plex/doinst.sh | 11 ++++ system/otf-ibm-plex/otf-ibm-plex.SlackBuild | 72 +++++++++++++++++++++ system/otf-ibm-plex/otf-ibm-plex.info | 10 +++ system/otf-ibm-plex/slack-desc | 19 ++++++ 5 files changed, 115 insertions(+) create mode 100644 system/otf-ibm-plex/README create mode 100644 system/otf-ibm-plex/doinst.sh create mode 100644 system/otf-ibm-plex/otf-ibm-plex.SlackBuild create mode 100644 system/otf-ibm-plex/otf-ibm-plex.info create mode 100644 system/otf-ibm-plex/slack-desc diff --git a/system/otf-ibm-plex/README b/system/otf-ibm-plex/README new file mode 100644 index 0000000000..3e5cfeed88 --- /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 0000000000..f0c0523187 --- /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 0000000000..5dedabddb4 --- /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 +# +# 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 0000000000..77588e2a10 --- /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 0000000000..f2b64d465f --- /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: