aboutsummaryrefslogtreecommitdiff
path: root/system/ttf-inconsolata/ttf-inconsolata.SlackBuild
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2023-01-12 19:21:53 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-14 08:50:06 +0700
commitafff71797ba6bac0c9f33f2a6ee317f993fba86d (patch)
tree9239055b77f24b38c1849eaaf56d087a58cd6a83 /system/ttf-inconsolata/ttf-inconsolata.SlackBuild
parent5d03d97f58989f51365ce9e88d5cd82930d62f59 (diff)
system/ttf-inconsolata: Updated for version 3.000.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ttf-inconsolata/ttf-inconsolata.SlackBuild')
-rw-r--r--system/ttf-inconsolata/ttf-inconsolata.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/system/ttf-inconsolata/ttf-inconsolata.SlackBuild b/system/ttf-inconsolata/ttf-inconsolata.SlackBuild
index 1b9af687b5b5..29865606c13a 100644
--- a/system/ttf-inconsolata/ttf-inconsolata.SlackBuild
+++ b/system/ttf-inconsolata/ttf-inconsolata.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for ttf-inconsolata.
#
-# Copyright 2016-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2016-2023 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ttf-inconsolata
-VERSION=${VERSION:-20160814}
+VERSION=${VERSION:-3.000}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -44,13 +44,16 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+SRCNAM="Inconsolata"
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-mkdir -p $PRGNAM-$VERSION
+tar -xzvf $CWD/$SRCNAM-$VERSION.tar.?z
+mv $SRCNAM-$VERSION $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -62,13 +65,13 @@ find -L . \
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-install -m 644 -D $CWD/75-ttf-inconsolata.conf $PKG/etc/fonts/conf.avail/75-ttf-inconsolata.conf
-
install -d $PKG/usr/share/fonts/TTF/
-install -m 644 $CWD/Inconsolata-{Regular,Bold}.ttf $PKG/usr/share/fonts/TTF/
+install -Dm644 fonts/ttf/*.ttf "$PKG/usr/share/fonts/TTF"
+
+install -Dm644 $CWD/75-ttf-inconsolata.conf $PKG/usr/share/fontconfig/conf.avail/75-ttf-inconsolata.conf
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp $CWD/OFL.txt $PKG/usr/doc/$PRGNAM-$VERSION
+install -Dm644 AUTHORS.txt CONTRIBUTORS.txt FONTLOG.txt OFL.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install