mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-30 05:39:56 +02:00
system/ttf-ibm-plex: Added (True Type Font).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
a6bb8cd861
commit
478311406d
5 changed files with 105 additions and 0 deletions
3
system/ttf-ibm-plex/README
Normal file
3
system/ttf-ibm-plex/README
Normal file
|
@ -0,0 +1,3 @@
|
|||
ttf-ibm-plex (True Type Font)
|
||||
|
||||
IBM Plex font family.
|
11
system/ttf-ibm-plex/doinst.sh
Normal file
11
system/ttf-ibm-plex/doinst.sh
Normal file
|
@ -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
|
19
system/ttf-ibm-plex/slack-desc
Normal file
19
system/ttf-ibm-plex/slack-desc
Normal file
|
@ -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:
|
62
system/ttf-ibm-plex/ttf-ibm-plex.SlackBuild
Normal file
62
system/ttf-ibm-plex/ttf-ibm-plex.SlackBuild
Normal file
|
@ -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}
|
10
system/ttf-ibm-plex/ttf-ibm-plex.info
Normal file
10
system/ttf-ibm-plex/ttf-ibm-plex.info
Normal file
|
@ -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"
|
Loading…
Reference in a new issue