summaryrefslogtreecommitdiff
path: root/misc/gnu-unifont/gnu-unifont.SlackBuild
blob: d1e90410761c0e42edc7daac87e9512fcc38a463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh

# Slackware build script for gnu-unifont

# Written by crocket (crockabiscuit@gmail.com)

PRGNAM=gnu-unifont
VERSION=${VERSION:-5.1}
BUILD=${BUILD:-2}
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}