aboutsummaryrefslogtreecommitdiff
path: root/system/gnu-unifont/gnu-unifont.SlackBuild
diff options
context:
space:
mode:
authorLukenShiro <lukenshiro@ngi.it>2014-08-07 08:37:03 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-07 08:37:03 +0700
commit9fd488ee5ea8bc490851ed5164ccde79972605f3 (patch)
treeda33fdc4aa6bc6baddaded75dba66589978873ad /system/gnu-unifont/gnu-unifont.SlackBuild
parent6a5ea3a606c897c88a4747f032b320fb7a7cca7b (diff)
system/gnu-unifont: Updated for version 7.0.03.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/gnu-unifont/gnu-unifont.SlackBuild')
-rw-r--r--system/gnu-unifont/gnu-unifont.SlackBuild27
1 files changed, 20 insertions, 7 deletions
diff --git a/system/gnu-unifont/gnu-unifont.SlackBuild b/system/gnu-unifont/gnu-unifont.SlackBuild
index 8f4514e20d49c..c29ba85d2afb4 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