diff options
author | antonioleal <antonioleal@yahoo.com> | 2016-09-05 22:05:29 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-09-05 22:05:29 +0700 |
commit | e0a132397b7b70fd1b5260da639d44c1365c2c2d (patch) | |
tree | f1a6eed69d77df79e3d913272c85b66f8a86ebde /development/codeblocks/codeblocks.SlackBuild | |
parent | 074fd0bcf67a4e5592684257c9bb3ae76437dc2f (diff) | |
download | slackbuilds-e0a132397b7b70fd1b5260da639d44c1365c2c2d.tar.gz |
development/codeblocks: Updated for version 16.01.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/codeblocks/codeblocks.SlackBuild')
-rw-r--r-- | development/codeblocks/codeblocks.SlackBuild | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/development/codeblocks/codeblocks.SlackBuild b/development/codeblocks/codeblocks.SlackBuild index 7c54899841..61983299bf 100644 --- a/development/codeblocks/codeblocks.SlackBuild +++ b/development/codeblocks/codeblocks.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for codeblocks -# Copyright 2014 Antonio Leal Lisbon, Portugal +# Copyright 2016 Antonio Leal Lisbon, Portugal # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=codeblocks -VERSION=${VERSION:-13.12} +VERSION=${VERSION:-16.01} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -60,15 +60,14 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvfz $CWD/$PRGNAM\_$VERSION-1.tar.gz -cd $PRGNAM-$VERSION - +tar xvfz $CWD/$PRGNAM\_$VERSION.tar.gz +cd $PRGNAM-$VERSION.release chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; ./bootstrap @@ -81,10 +80,11 @@ CXXFLAGS="$SLKCFLAGS -fpermissive" \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ + --docdir=/usr/doc/$PKGNAME-$VERSION \ --disable-static \ - --build=$ARCH-slackware-linux -# --with-contrib-plugins=all \ + --build=$ARCH-slackware-linux # --with-contrib-plugins=all + +# If you want to enable all contrib-plugins, uncomment the option --with-contrib-plugins=all in the line above. make make install-strip DESTDIR=$PKG @@ -92,8 +92,7 @@ make install-strip DESTDIR=$PKG gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS BUGS BUILD COMPILERS COPYING ChangeLog NEWS README TODO \ +cp -a AUTHORS BUGS BUILD COMPILERS COPYING ChangeLog NEWS README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |