summaryrefslogtreecommitdiff
path: root/misc/gnu-unifont/gnu-unifont.SlackBuild
diff options
context:
space:
mode:
authorcrocket <crockabiscuit@yahoo.com>2010-06-29 19:33:05 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-29 19:33:05 -0500
commitb8b1b9cccdedbcfbb792c8e80eae5720bcd924e3 (patch)
treea5293adaf60d633c34caeb4e4aff205cec838b4c /misc/gnu-unifont/gnu-unifont.SlackBuild
parent5d01a57e7b1059d772f24817544c0d056098a430 (diff)
downloadslackbuilds-b8b1b9cccdedbcfbb792c8e80eae5720bcd924e3.tar.gz
misc/gnu-unifont: Added (GNU Unicode font)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'misc/gnu-unifont/gnu-unifont.SlackBuild')
-rw-r--r--misc/gnu-unifont/gnu-unifont.SlackBuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/misc/gnu-unifont/gnu-unifont.SlackBuild b/misc/gnu-unifont/gnu-unifont.SlackBuild
new file mode 100644
index 0000000000..3cdb920289
--- /dev/null
+++ b/misc/gnu-unifont/gnu-unifont.SlackBuild
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# Slackware build script for gnu-unifont
+
+# Written by crocket (crockabiscuit@yahoo.com)
+
+PRGNAM=gnu-unifont
+VERSION=${VERSION:-5.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+
+SRCNAM=unifont
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+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
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}