summaryrefslogtreecommitdiff
path: root/development/codeblocks/codeblocks.SlackBuild
diff options
context:
space:
mode:
authorantonioleal <antonioleal@yahoo.com>2013-06-05 12:03:07 -0400
committerdsomero <xgizzmo@slackbuilds.org>2013-06-05 12:03:07 -0400
commit4051ad3647df5a9178817c614de6f014c8736dd7 (patch)
treec0a6315855c856268b972d7ef871766478810c9f /development/codeblocks/codeblocks.SlackBuild
parent07bec150c6f06e391b913db838a50d2777909355 (diff)
downloadslackbuilds-4051ad3647df5a9178817c614de6f014c8736dd7.tar.gz
development/codeblocks: Updated for version 12.11.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/codeblocks/codeblocks.SlackBuild')
-rw-r--r--development/codeblocks/codeblocks.SlackBuild23
1 files changed, 9 insertions, 14 deletions
diff --git a/development/codeblocks/codeblocks.SlackBuild b/development/codeblocks/codeblocks.SlackBuild
index ff9aeb506b..26b0af2b2c 100644
--- a/development/codeblocks/codeblocks.SlackBuild
+++ b/development/codeblocks/codeblocks.SlackBuild
@@ -1,11 +1,12 @@
#!/bin/sh
# Slackware build script for codeblocks
-# Written by Mehdi Esmaeelpour | ariarat@gmail.com | www.slack-world.com/ariarat
+# Written by Mehdi Esmaeelpour | ariarat@gmail.com | www.slack-world.com/ariarat
+# Adapted by Antonio Leal | antonioleal@yahoo.com
PRGNAM=codeblocks
-VERSION=${VERSION:-10.05}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-12.11}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -40,9 +41,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION-release
-tar xvf $CWD/$PRGNAM-$VERSION-src.tar.bz2
-cd $PRGNAM-$VERSION-release
+rm -rf $PRGNAM-$VERSION\release8629
+tar xvfz $CWD/$PRGNAM\_$VERSION-1.tar.gz
+cd $PRGNAM-$VERSION\release8629
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -50,13 +51,7 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Add a patch for gcc-4.7.x, (thans Debian)
-patch -p1 < $CWD/ftbfs-gcc-4.7.diff
-
-# This move the codeblocks plugins to /usr/lib$LIBDIRSUFFIX/codeblock/plugins
-# Take care to move the additional ones you have installed if upgrading
-sed -e "s|usr/lib|usr/lib$LIBDIRSUFFIX|" $CWD/01-codeblocks_plugin_path.patch \
- | patch -p1
+./bootstrap
LDFLAGS="-lX11" \
CFLAGS="$SLKCFLAGS" \
@@ -69,8 +64,8 @@ CXXFLAGS="$SLKCFLAGS -fpermissive" \
--mandir=/usr/man \
--docdir=/usr/doc/$PKGNAME-$VERSION \
--disable-static \
- --with-contrib-plugins=all \
--build=$ARCH-slackware-linux
+# --with-contrib-plugins=all \
make
make install-strip DESTDIR=$PKG