summaryrefslogtreecommitdiffstats
path: root/system/ttf-inconsolata/ttf-inconsolata.SlackBuild
diff options
context:
space:
mode:
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 1b9af687b5..29865606c1 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