diff options
Diffstat (limited to 'system/gnu-unifont/gnu-unifont.SlackBuild')
-rw-r--r-- | system/gnu-unifont/gnu-unifont.SlackBuild | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/system/gnu-unifont/gnu-unifont.SlackBuild b/system/gnu-unifont/gnu-unifont.SlackBuild index 8f4514e20d49..c29ba85d2afb 100644 --- a/system/gnu-unifont/gnu-unifont.SlackBuild +++ b/system/gnu-unifont/gnu-unifont.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for gnu-unifont # Copyright 2010 crocket (crockabiscuit@gmail.com) -# Copyright 2013 LukenShiro, Italy +# Copyright 2013-2014 LukenShiro, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=gnu-unifont -VERSION=${VERSION:-6.3.20131020} +VERSION=${VERSION:-7.0.03} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -36,20 +36,33 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} SRCNAM=unifont +DOCFILES="ChangeLog COPYING INSTALL NEWS README" set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +cd font/precompiled mkdir -p $PKG/usr/share/fonts/{misc,TTF} -cat $CWD/$SRCNAM-$VERSION.pcf.gz \ - > $PKG/usr/share/fonts/misc/$SRCNAM.pcf.gz -# Decompress .ttf.gz since some programs using ttf fonts don't recognize .ttf.gz -zcat $CWD/$SRCNAM-$VERSION.ttf.gz \ - > $PKG/usr/share/fonts/TTF/$SRCNAM.ttf +cp -a *.pcf.gz $PKG/usr/share/fonts/misc/ +cp -a *.ttf $PKG/usr/share/fonts/TTF +mkdir -p $PKG/usr/share/kbd/consolefonts +cp -a *.psf.gz $PKG/usr/share/kbd/consolefonts/ +cd - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |