diff options
Diffstat (limited to 'system/ttf-open-sans/ttf-open-sans.SlackBuild')
-rw-r--r-- | system/ttf-open-sans/ttf-open-sans.SlackBuild | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/system/ttf-open-sans/ttf-open-sans.SlackBuild b/system/ttf-open-sans/ttf-open-sans.SlackBuild index a6f74b0a787bf..ed86241753115 100644 --- a/system/ttf-open-sans/ttf-open-sans.SlackBuild +++ b/system/ttf-open-sans/ttf-open-sans.SlackBuild @@ -2,7 +2,7 @@ # # Slackware build script for ttf-open-sans. # -# Copyright 2015-2016 Edinaldo P. Silva, Rio de Janeiro, Brazil. +# Copyright 2015-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil. # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=ttf-open-sans -VERSION=${VERSION:-1.0} +VERSION=${VERSION:-1.11} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -34,7 +34,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -SRCNAM="open-sans" +SRCNAM="fonts-open-sans" set -e @@ -42,8 +42,8 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -mkdir $PRGNAM-$VERSION -unzip $CWD/$SRCNAM.zip -d $PRGNAM-$VERSION/ +tar xvf $CWD/${SRCNAM}_${VERSION}.orig.tar.xz +mv ${SRCNAM}-${VERSION} $PRGNAM-$VERSION cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -55,19 +55,12 @@ find -L . \ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -mkdir -p $PKG/usr/share/fonts/TTF - -FONTS="OpenSans-Bold.ttf OpenSans-BoldItalic.ttf OpenSans-ExtraBold.ttf \ -OpenSans-ExtraBoldItalic.ttf OpenSans-Italic.ttf OpenSans-Light.ttf \ -OpenSans-LightItalic.ttf OpenSans-Regular.ttf OpenSans-Semibold.ttf \ -OpenSans-SemiboldItalic.ttf" - -for i in $FONTS; do - cp -a $i $PKG/usr/share/fonts/TTF/ -done +mkdir -p $PKG/usr/share/fonts/TTF/ +install -m644 OpenSans-*.ttf $PKG/usr/share/fonts/TTF/ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE.txt $PKG/usr/doc/$PRGNAM-$VERSION +install -m644 Apache\ License.txt $PKG/usr/doc/$PRGNAM-$VERSION/LICENSE +install -m644 $CWD/{changelog,copyright,README.Source} $PKG/usr/doc/$PRGNAM-$VERSION/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |