summaryrefslogtreecommitdiff
path: root/libraries/cbase/cbase.SlackBuild
diff options
context:
space:
mode:
authorMenno Duursma <druiloor@zonnet.nl>2010-05-13 00:28:57 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:28:57 +0200
commit4cdad00075ab3127c7ccfb2ff2d2346d12e4cad2 (patch)
tree4a5280144230ab9933318d7f5399a4a4f6413bc1 /libraries/cbase/cbase.SlackBuild
parent7500f7a27d2ef642c54d42739eeeb25e46e0bb67 (diff)
downloadslackbuilds-4cdad00075ab3127c7ccfb2ff2d2346d12e4cad2.tar.gz
libraries/cbase: Updated for version 1.3.5
Diffstat (limited to 'libraries/cbase/cbase.SlackBuild')
-rw-r--r--libraries/cbase/cbase.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/libraries/cbase/cbase.SlackBuild b/libraries/cbase/cbase.SlackBuild
index 76e201e71f..4525f66d8a 100644
--- a/libraries/cbase/cbase.SlackBuild
+++ b/libraries/cbase/cbase.SlackBuild
@@ -9,7 +9,7 @@
# For details see http://sam.zoy.org/wtfpl/COPYING
PRGNAM=cbase
-VERSION=${VERSION:-1.3.4}
+VERSION=${VERSION:-1.3.5}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -21,10 +21,13 @@ 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"
fi
set -e # Exit on most errors
@@ -46,6 +49,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--infodir=/usr/info \
@@ -60,10 +64,10 @@ gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a [A-Z][A-Z]* ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README.$TAG
+cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG
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}