diff options
Diffstat (limited to 'misc/figlet/figlet.SlackBuild')
-rw-r--r-- | misc/figlet/figlet.SlackBuild | 11 |
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} |