mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
misc/figlet: Updated for version 2.2.5.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
5d878ed0b3
commit
fa44ce6690
3 changed files with 26 additions and 59 deletions
|
@ -1,34 +1,4 @@
|
|||
FIGlet is a program for making large letters out of ordinary text
|
||||
|
||||
_ _ _ _ _ _
|
||||
| (_) | _____ | |_| |__ (_)___
|
||||
| | | |/ / _ \ | __| '_ \| / __|
|
||||
| | | < __/ | |_| | | | \__ \
|
||||
|_|_|_|\_\___| \__|_| |_|_|___/
|
||||
|
||||
. oooo o8o
|
||||
.o8 `888 `"'
|
||||
.ooooo. oooo d8b .o888oo 888 .oo. oooo .oooo.o
|
||||
d88' `88b `888""8P 888 888P"Y88b `888 d88( "8
|
||||
888 888 888 888 888 888 888 `"Y88b.
|
||||
888 888 888 888 . 888 888 888 o. )88b
|
||||
`Y8bod8P' d888b "888" o888o o888o o888o 8""888P'
|
||||
|
||||
_/ _/ _/
|
||||
_/_/ _/ _/_/ _/_/_/_/ _/_/_/ _/_/_/
|
||||
_/ _/ _/_/ _/ _/ _/ _/ _/_/
|
||||
_/ _/ _/ _/ _/ _/ _/ _/_/
|
||||
_/_/ _/ _/_/ _/ _/ _/ _/_/_/
|
||||
|
||||
or this:
|
||||
|
||||
# # # #
|
||||
########## ####### ########## ##########
|
||||
# # # # # # #
|
||||
# # # # # # # #
|
||||
# # ### # # #
|
||||
# # # ## # # # #
|
||||
# # ## # # ##
|
||||
|
||||
This contains the standard distribution fonts but more are available
|
||||
from the homepage. Fonts should be untarred into /usr/share/figlet/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for figlet
|
||||
|
||||
|
||||
# Copyright 2009 David Woodfall <dave@unrealize.co.uk>
|
||||
# All rights reserved.
|
||||
#
|
||||
|
@ -26,7 +26,7 @@
|
|||
# YOUR DATA IS DESTROYED, YOUR HOUSE BURNS DOWN OR YOUR DOG RUNS OFF.
|
||||
|
||||
PRGNAM=figlet
|
||||
VERSION=${VERSION:-222}
|
||||
VERSION=${VERSION:-2.2.5}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -43,14 +43,28 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM$VERSION
|
||||
tar xvf $CWD/$PRGNAM$VERSION.tar.gz
|
||||
cd $PRGNAM$VERSION
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
|
@ -58,25 +72,8 @@ find . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
# Need to fix the Makefile
|
||||
sed -i 's/local\///g' Makefile
|
||||
sed -i '/DEFAULTFONTDIR\ =\ fonts/d' Makefile
|
||||
|
||||
# Sed the CFLAGs into the Makefile
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
sed -i 's#CFLAGS = -g#CFLAGS=-O2 -march=i486 -mtune=i686#g' Makefile
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
sed -i 's#CFLAGS = -g#CFLAGS=-O2 -march=i686 -mtune=i686#g' Makefile
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
sed -i 's#CFLAGS = -g#CFLAGS=-O2 -fPIC#g' Makefile
|
||||
fi
|
||||
|
||||
make all
|
||||
mkdir -p $PKG/usr/bin $PKG/usr/share/figlet $PKG/usr/man/man6
|
||||
chmod +x figlist
|
||||
cp figlet chkfont figlist $PKG/usr/bin
|
||||
cp fonts/*.flf fonts/*.flc $PKG/usr/share/figlet
|
||||
cp figlet.6 $PKG/usr/man/man6
|
||||
make all CFLAGS="$SLKCFLAGS" prefix=/usr
|
||||
make install prefix=/usr DESTDIR=$PKG
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="figlet"
|
||||
VERSION="222"
|
||||
VERSION="2.2.5"
|
||||
HOMEPAGE="http://www.figlet.org"
|
||||
DOWNLOAD="http://source.dawoodfall.net/figlet222.tar.gz"
|
||||
MD5SUM="9fcf4f1651b8e6d3f56f1ef665285b2e"
|
||||
DOWNLOAD="ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-2.2.5.tar.gz"
|
||||
MD5SUM="d88cb33a14f1469fff975d021ae2858e"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="David Woodfall"
|
||||
EMAIL="dave@dawoodfall.net"
|
||||
APPROVED="Niels Horn"
|
||||
APPROVED="dsomero"
|
||||
|
|
Loading…
Reference in a new issue