summaryrefslogtreecommitdiffstats
path: root/system/adobe-source-sans-pro-font/adobe-source-sans-pro-font.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/adobe-source-sans-pro-font/adobe-source-sans-pro-font.SlackBuild')
-rw-r--r--system/adobe-source-sans-pro-font/adobe-source-sans-pro-font.SlackBuild30
1 files changed, 9 insertions, 21 deletions
diff --git a/system/adobe-source-sans-pro-font/adobe-source-sans-pro-font.SlackBuild b/system/adobe-source-sans-pro-font/adobe-source-sans-pro-font.SlackBuild
index 8da987f567..01520ef778 100644
--- a/system/adobe-source-sans-pro-font/adobe-source-sans-pro-font.SlackBuild
+++ b/system/adobe-source-sans-pro-font/adobe-source-sans-pro-font.SlackBuild
@@ -1,6 +1,7 @@
#!/bin/sh
# Copyright (c) 2012 Daniel LEVAI
+# Copyright (c) 2020 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# * Redistribution and use in source and binary forms, with or without
@@ -22,23 +23,10 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# Currently maintained by Dugan Chen.
PRGNAM=adobe-source-sans-pro-font
-
-# The version in the tarball
-SRCVERSION=${VERSION:-1.065R-it}
-
-# The version in the package
-VERSION=${PKG_VERSION:-2.010.ro.1.065.it}
-
-# The version in the untarred source directory
-SRC_VERSION=2.010R-ro-1.065R-it
-
-SRC=${SRCVERSION}.tar.gz
-SRCDIR=source-sans-pro-${SRC_VERSION}
-
+SRCNAM=source-sans-pro
+VERSION=${VERSION:-3.006R}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,9 +42,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf ${SRCDIR}
-tar xvf $CWD/$SRC || tar xvf $CWD/$SRCDIR.tar.gz
-cd $SRCDIR
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.?z*
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -64,11 +52,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-mkdir -p $PKG/usr/share/fonts/OTF/
-cp OTF/*.otf $PKG/usr/share/fonts/OTF/
+mkdir -p $PKG/usr/share/fonts/OTF
+cp OTF/*.otf VAR/*.otf $PKG/usr/share/fonts/OTF/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a LICENSE.txt ReadMe.html SourceSansProReadMe.html $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a *.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install