mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
misc/figlet: Updated download info + misc. cleanups
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
parent
7a2134b989
commit
800ce8b7ac
3 changed files with 14 additions and 19 deletions
|
@ -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}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="figlet"
|
||||
VERSION="222"
|
||||
HOMEPAGE="http://www.figlet.org"
|
||||
DOWNLOAD="ftp://ftp.figlet.org/pub/figlet/program/unix/figlet222.tar.gz"
|
||||
MD5SUM="5f84ad52d092d5db4ad5916df767646b"
|
||||
DOWNLOAD="http://source.dawoodfall.net/figlet222.tar.gz"
|
||||
MD5SUM="9fcf4f1651b8e6d3f56f1ef665285b2e"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="David Woodfall"
|
||||
EMAIL="dave@unrealize.co.uk"
|
||||
APPROVED="dsomero"
|
||||
EMAIL="dave@dawoodfall.net"
|
||||
APPROVED="Niels Horn"
|
||||
|
|
Loading…
Reference in a new issue