summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-12-05 23:49:41 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2016-12-10 00:57:38 +0000
commit0f50177d65651207f4deed7abed767b0a2425410 (patch)
tree6d2ab45785a8c896ea0b862fc16c18bf59a64ff7
parent10fca4e0ed064e50ae0985b3ac100a5cf75fdf33 (diff)
downloadslackbuilds-0f50177d65651207f4deed7abed767b0a2425410.tar.gz
system/noto-fonts: Update README.
Fixed tarball handling. Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--system/noto-fonts/README3
-rw-r--r--system/noto-fonts/noto-fonts.SlackBuild8
2 files changed, 6 insertions, 5 deletions
diff --git a/system/noto-fonts/README b/system/noto-fonts/README
index 07f20bb997..9b5f0bde11 100644
--- a/system/noto-fonts/README
+++ b/system/noto-fonts/README
@@ -12,6 +12,3 @@ Currently, Noto covers all major languages of the world and many others,
including European, African, Middle Eastern, Indic, South and Southeast
Asian, Central Asian, American, and East Asian languages. Several
minority and historical languages are also supported.
-
-Support for Simplified Chinese, Traditional Chinese, Japanese, and
-Korean was first added in July 2014.
diff --git a/system/noto-fonts/noto-fonts.SlackBuild b/system/noto-fonts/noto-fonts.SlackBuild
index 524f1f4c6c..406965d9a2 100644
--- a/system/noto-fonts/noto-fonts.SlackBuild
+++ b/system/noto-fonts/noto-fonts.SlackBuild
@@ -41,8 +41,12 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/v$SRCVER.tar.gz --exclude=hinted/{Arimo*.ttf,Cousine*.ttf,Tinos*.ttf}
+rm -rf $PRGNAM-$SRCVER $PRGNAM-$VERSION
+if [ -f $CWD/v$SRCVER.tar.gz ]; then
+ tar xvf $CWD/v$SRCVER.tar.gz --exclude=hinted/{Arimo*.ttf,Cousine*.ttf,Tinos*.ttf}
+else
+ tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz --exclude=hinted/{Arimo*.ttf,Cousine*.ttf,Tinos*.ttf}
+fi
mv $PRGNAM-$SRCVER $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .