summaryrefslogtreecommitdiff
path: root/misc/figlet/figlet.SlackBuild
diff options
context:
space:
mode:
authorDavid Woodfall <dave@dawoodfall.net>2011-03-04 23:56:26 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-03-04 23:56:26 -0300
commit800ce8b7ac43fd06eb986b06db8a2afa30940777 (patch)
tree4031e30eb14869ff4d7b4b2db34c3d064b4c8992 /misc/figlet/figlet.SlackBuild
parent7a2134b989d3fea681841f2698fd19b062f0db7d (diff)
downloadslackbuilds-800ce8b7ac43fd06eb986b06db8a2afa30940777.tar.gz
misc/figlet: Updated download info + misc. cleanups
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'misc/figlet/figlet.SlackBuild')
-rw-r--r--misc/figlet/figlet.SlackBuild11
1 files changed, 3 insertions, 8 deletions
diff --git a/misc/figlet/figlet.SlackBuild b/misc/figlet/figlet.SlackBuild
index 20612221be..35acf1a0e5 100644
--- a/misc/figlet/figlet.SlackBuild
+++ b/misc/figlet/figlet.SlackBuild
@@ -30,12 +30,10 @@ VERSION=${VERSION:-222}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -70,7 +68,7 @@ if [ "$ARCH" = "i486" ]; then
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
+ sed -i 's#CFLAGS = -g#CFLAGS=-O2 -fPIC#g' Makefile
fi
make all
@@ -83,10 +81,8 @@ cp figlet.6 $PKG/usr/man/man6
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp CHANGES LICENSE README FAQ $PKG/usr/doc/$PRGNAM-$VERSION
@@ -95,6 +91,5 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-# Make the package
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}