From fa44ce6690086dceb3c26a33609c21a91330a3a7 Mon Sep 17 00:00:00 2001 From: David Woodfall Date: Mon, 25 Jun 2012 21:32:08 -0400 Subject: [PATCH] misc/figlet: Updated for version 2.2.5. Signed-off-by: dsomero --- misc/figlet/README | 30 ---------------------- misc/figlet/figlet.SlackBuild | 47 ++++++++++++++++------------------- misc/figlet/figlet.info | 8 +++--- 3 files changed, 26 insertions(+), 59 deletions(-) diff --git a/misc/figlet/README b/misc/figlet/README index 7e499ca65d..21e750cb56 100644 --- a/misc/figlet/README +++ b/misc/figlet/README @@ -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/ diff --git a/misc/figlet/figlet.SlackBuild b/misc/figlet/figlet.SlackBuild index 35acf1a0e5..84a1b1f8c9 100644 --- a/misc/figlet/figlet.SlackBuild +++ b/misc/figlet/figlet.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Slackware build script for figlet - + # Copyright 2009 David Woodfall # 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 diff --git a/misc/figlet/figlet.info b/misc/figlet/figlet.info index 058487a015..774c55402d 100644 --- a/misc/figlet/figlet.info +++ b/misc/figlet/figlet.info @@ -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"