diff options
author | Matthew Fillpot <mfillpot@gmail.com> | 2010-05-13 00:33:26 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:33:26 +0200 |
commit | 46ee49262137c646b3141684d1be364daff0b418 (patch) | |
tree | f52f2c5078c573e94268af2ee9dbf4ac7c5eb291 /libraries/quesoglc/quesoglc.SlackBuild | |
parent | 03c845c59f2f0fde0334695f14e67b810d4a3979 (diff) |
libraries/quesoglc: Updated for version 0.7.2
Diffstat (limited to 'libraries/quesoglc/quesoglc.SlackBuild')
-rw-r--r-- | libraries/quesoglc/quesoglc.SlackBuild | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/libraries/quesoglc/quesoglc.SlackBuild b/libraries/quesoglc/quesoglc.SlackBuild index 68c36629d08ca..f2ef916c3858f 100644 --- a/libraries/quesoglc/quesoglc.SlackBuild +++ b/libraries/quesoglc/quesoglc.SlackBuild @@ -2,7 +2,7 @@ # SlackBuild script for QuesoGLC -# Copyright 2008 Andrew "ccfreak2k" Waters +# Copyright 2009 Matthew "mfillpot" Fillpot # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=quesoglc -VERSION=${VERSION:-0.7.1} +VERSION=${VERSION:-0.7.2} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,21 +35,32 @@ 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 + echo "Unrecognized architecture type! Check the script: $0" + exit 1 fi +set -e + rm -rf $TMP/$PRGNAM-$VERSION $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 -cd $PRGNAM-$VERSION || exit 1 +cd $TMP +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . CFLAGS="$SLKCFLAGS" \ - ./configure \ +./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --docdir=/usr/doc/$PRGNAM-$VERSION \ @@ -57,11 +68,16 @@ CFLAGS="$SLKCFLAGS" \ --disable-executables \ --build=$ARCH-slackware-linux -make || exit 1 +make make install DESTDIR=$PKG +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog INSTALL THANKS README \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + 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} |