diff options
author | Eugene M <damagedone@gmx.com> | 2021-08-08 15:02:51 +0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-08-18 09:23:46 +0700 |
commit | ab65082e28ad5c71e987b2c54cbcc2dc84df0c5c (patch) | |
tree | 02f0c9f252486624cac4f33694783bc81572e48e /system/AnonymousPro | |
parent | 9ac17aa4ddd777b9c28fc774a0ec2fbe643445f9 (diff) |
system/AnonymousPro: Rewrote SlackBuild, updated link.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/AnonymousPro')
-rw-r--r-- | system/AnonymousPro/AnonymousPro.SlackBuild | 14 | ||||
-rw-r--r-- | system/AnonymousPro/AnonymousPro.info | 8 | ||||
-rw-r--r-- | system/AnonymousPro/doinst.sh | 12 |
3 files changed, 14 insertions, 20 deletions
diff --git a/system/AnonymousPro/AnonymousPro.SlackBuild b/system/AnonymousPro/AnonymousPro.SlackBuild index 5f61b11278b12..6aa27a688f5b8 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 ca0b989459af4..a40ba80c58b71 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 883c47ac0a60c..f0ffee7710944 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 |