summaryrefslogtreecommitdiff
path: root/graphics/gliv/gliv.SlackBuild
diff options
context:
space:
mode:
authorSebastián Salazar Molina <ssalazar@orangepeople.cl>2010-05-13 00:27:56 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:27:56 +0200
commitcdc7353ac99cd0ceff3ea7836f61849eebadabf8 (patch)
treec41a6e7b0a6033facc126330cb73991689c2cbc7 /graphics/gliv/gliv.SlackBuild
parentd2d5f221a43e5cc3c7c5eb5ef5b364ec9357aa78 (diff)
downloadslackbuilds-cdc7353ac99cd0ceff3ea7836f61849eebadabf8.tar.gz
graphics/gliv: Updated for version 1.9.6
Diffstat (limited to 'graphics/gliv/gliv.SlackBuild')
-rw-r--r--graphics/gliv/gliv.SlackBuild28
1 files changed, 12 insertions, 16 deletions
diff --git a/graphics/gliv/gliv.SlackBuild b/graphics/gliv/gliv.SlackBuild
index 171fef0b1e..cf03607afe 100644
--- a/graphics/gliv/gliv.SlackBuild
+++ b/graphics/gliv/gliv.SlackBuild
@@ -1,7 +1,6 @@
#!/bin/sh
-# Slackware build script for <gliv>
-
+# Slackware build script for gliv
# Written by Sebastián Salazar Molina <ssalazar@orangepeople.cl>
PRGNAM=gliv
@@ -16,11 +15,14 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e # Exit on most errors
@@ -29,7 +31,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar jxvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar jxvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -62,16 +64,9 @@ make install DESTDIR=$PKG
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
-( cd $PKG
- # Remove 'special' files
- find . -name perllocal.pod \
- -o -name ".packlist" \
- -o -name "*.bs" \
- | xargs rm -f
-)
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ABOUT-NLS COPYING INSTALL NEWS README THANKS \
+cp -a \
+ ABOUT-NLS COPYING INSTALL NEWS README THANKS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -79,4 +74,5 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+