summaryrefslogtreecommitdiff
path: root/system/ttf-crosscorefonts/ttf-crosscorefonts.SlackBuild
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2018-02-15 06:16:35 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-02-17 07:42:47 +0700
commit77f73831ddcda28b2af50bc5711e3b0a022a256f (patch)
treef77f60541b9b2dca548f95d812840fefaff32f82 /system/ttf-crosscorefonts/ttf-crosscorefonts.SlackBuild
parentca6ba0a8f3f194e5eefca6c13b2c4452b7c3e9f7 (diff)
downloadslackbuilds-77f73831ddcda28b2af50bc5711e3b0a022a256f.tar.gz
system/system/ttf-crosscorefonts: Updated for version 20180111.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ttf-crosscorefonts/ttf-crosscorefonts.SlackBuild')
-rw-r--r--system/ttf-crosscorefonts/ttf-crosscorefonts.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/system/ttf-crosscorefonts/ttf-crosscorefonts.SlackBuild b/system/ttf-crosscorefonts/ttf-crosscorefonts.SlackBuild
index 3087706687..4b3b9d9ff3 100644
--- a/system/ttf-crosscorefonts/ttf-crosscorefonts.SlackBuild
+++ b/system/ttf-crosscorefonts/ttf-crosscorefonts.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for ttf-crosscorefonts.
#
-# Copyright 2016-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2016-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ttf-crosscorefonts
-VERSION=${VERSION:-1.31.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-20180111}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
@@ -34,7 +34,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-SRCNAM="croscorefonts"
+SRCNAM=${SRCNAM:-noto-fonts}
+SRCVER=${SRCVER:-73683215d976115b8f0f11f3e4e61bb116709924}
set -e
@@ -42,8 +43,9 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
-mv $SRCNAM-$VERSION $PRGNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz --exclude=alpha --exclude=hinted/{Noto*.ttf,Noto*.ttc} \
+--exclude=images --exclude=unhinted
+mv $SRCNAM-$SRCVER $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -56,9 +58,10 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
install -d $PKG/usr/share/fonts/TTF/
-install -m644 *.ttf $PKG/usr/share/fonts/TTF/
+install -m644 hinted/*.ttf $PKG/usr/share/fonts/TTF/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp FAQ.md issue_template.md LICENSE NEWS.md README.md $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install