aboutsummaryrefslogtreecommitdiff
path: root/system/AnonymousPro
diff options
context:
space:
mode:
Diffstat (limited to 'system/AnonymousPro')
-rw-r--r--system/AnonymousPro/AnonymousPro.SlackBuild14
-rw-r--r--system/AnonymousPro/AnonymousPro.info8
-rw-r--r--system/AnonymousPro/doinst.sh12
3 files changed, 14 insertions, 20 deletions
diff --git a/system/AnonymousPro/AnonymousPro.SlackBuild b/system/AnonymousPro/AnonymousPro.SlackBuild
index 5f61b11278b1..6aa27a688f5b 100644
--- a/system/AnonymousPro/AnonymousPro.SlackBuild
+++ b/system/AnonymousPro/AnonymousPro.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for AnonymousPro
-# Copyright 2014-2015 Eugene M., <damagedone at gmx dot com>
+# Copyright 2014-2021 Eugene M., <damagedone at gmx dot com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +25,9 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=AnonymousPro
-VERSION=${VERSION:-1.002}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1_002}
+DIR_NAME=${DIR_NAME:-1.002.001}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -51,14 +52,9 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
unzip $CWD/$PRGNAM-$VERSION.zip
-unzip $CWD/AnonymousProMinus-1.003.zip
-# Ugly hack
-mv -f $PRGNAM-$VERSION.001 $PRGNAM-$VERSION
+mv -f $PRGNAM-$DIR_NAME $PRGNAM-$VERSION
mv $PRGNAM-$VERSION/FONTLOG.txt $PRGNAM-$VERSION/AnonymousPro_FONTLOG.txt
-mv -f AnonymousProMinus-1.003/*.* $PRGNAM-$VERSION
-mv $PRGNAM-$VERSION/FONTLOG.txt $PRGNAM-$VERSION/AnonymousProMinus_FONTLOG.txt
-rm -rf ._AnonymousPro-1.002.001 AnonymousProMinus-1.003
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
diff --git a/system/AnonymousPro/AnonymousPro.info b/system/AnonymousPro/AnonymousPro.info
index ca0b989459af..a40ba80c58b7 100644
--- a/system/AnonymousPro/AnonymousPro.info
+++ b/system/AnonymousPro/AnonymousPro.info
@@ -1,10 +1,8 @@
PRGNAM="AnonymousPro"
-VERSION="1.002"
+VERSION="1_002"
HOMEPAGE="https://www.marksimonson.com/fonts/view/anonymous-pro"
-DOWNLOAD="https://www.marksimonson.com/assets/content/fonts/AnonymousPro-1.002.zip \
- https://www.marksimonson.com/assets/content/fonts/AnonymousProMinus-1.003.zip"
-MD5SUM="bb5141b20b9d69b3190be03e5706c8b7 \
- 16468f49e2a56f8e2ad39f09728391bd"
+DOWNLOAD="https://www.marksimonson.com/assets/content/fonts/AnonymousPro-1_002.zip"
+MD5SUM="aac53fb8fdb238e84072a94f5721bbec"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/system/AnonymousPro/doinst.sh b/system/AnonymousPro/doinst.sh
index 883c47ac0a60..f0ffee771094 100644
--- a/system/AnonymousPro/doinst.sh
+++ b/system/AnonymousPro/doinst.sh
@@ -1,10 +1,10 @@
# Update the X font indexes:
+
if [ -x /usr/bin/mkfontdir ]; then
- ( cd /usr/share/fonts/TTF
- mkfontscale .
- mkfontdir .
+ ( cd usr/share/fonts/TTF
+ /usr/bin/mkfontscale .
+ /usr/bin/mkfontdir .
)
-fi
-if [ -x /usr/bin/fc-cache ]; then
- /usr/bin/fc-cache -f
+
+ [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache -f
fi